<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>React-Native on Johannes Filter</title>
    <link>https://johannesfilter.com/tags/react-native/</link>
    <description>Recent content in React-Native on Johannes Filter</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 12 Oct 2017 16:56:03 +0200</lastBuildDate>
    <atom:link href="https://johannesfilter.com/tags/react-native/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Import a Local React-Native NPM Package</title>
      <link>https://johannesfilter.com/how-to-import-a-local-react-native-npm-package/</link>
      <pubDate>Thu, 12 Oct 2017 16:56:03 +0200</pubDate>
      <guid>https://johannesfilter.com/how-to-import-a-local-react-native-npm-package/</guid>
      <description>&lt;p&gt;I had to fix an unmaintained NPM package for my latest React-Native app. But I struggled to import it locally. &lt;code&gt;npm install $relative-patch&lt;/code&gt; or &lt;code&gt;npm link&lt;/code&gt; were not working (check also &lt;a href=&#34;https://github.com/facebook/react-native/issues/637&#34;&gt;this issue&lt;/a&gt; ). For me, it looks like there is no simple way to import a local package that is outside of the root of your React-Native project. So I figured out I just place my local components in a folder &lt;code&gt;local_components&lt;/code&gt; within the react-native root project. Then, I can just &lt;code&gt;import X from ‘package-X’;&lt;/code&gt; without having to touch the &lt;code&gt;package.json&lt;/code&gt; of the react-native project.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
