title: React Native: npm link local dependency, unable to resolve module
body: <p>I am developing a button ui package for react native. I try to build an example project to test this button. The directory structure is as follows:</p>
  
  <pre><code>my-button/
      package.json
      index.js
      example/
          package.json
          index.js
  </code></pre>
  
  <p>I try to use <code>npm link</code>:</p>
  
  <pre><code>cd my-button
  npm link
  
  cd example
  npm link my-button
  </code></pre>
  
  <p>In <code>example/node_modules/</code> I can see my-button symlink, VSCode also can auto complete function in my-button package.</p>
  
  <p>But execute example app will show error:</p>
  
  <pre><code>Unable to resolve module my-button ...
  Module does not exist in the module map or in these directories: ...
  </code></pre>
  
  <p>But the path in the error message is correct.</p>
  
  <p>Don't know where I was wrong, or in React-Native have any special way to deal with link local dependency?</p>
  
  <p>I also tried <code>npm install file:../.</code>. It works fine in this way, but not easy to update dependency in <code>example/</code> after I edited my-button.</p>