title: React Native Loading Module error when using typescript path mapping
body: <p>I'm trying to use typescript path mapping to improve my imports.</p>
  
  <p>Currently I have the following source structure</p>
  
  <pre><code>tsconfig.json
  src
  ..index.ts
  ..moduleA
  ....index.ts
  </code></pre>
  
  <p>So, inside my tsconfig.json I have</p>
  
  <pre><code>"baseUrl": ".",
  "paths": {
       "moduleA": ["./src/moduleA/index.ts"]
  },
  </code></pre>
  
  <p>and on src\index.js I call </p>
  
  <pre><code>import { MyClassFromModule} from 'moduleA';
  </code></pre>
  
  <p>Everything compile wells but when React Native tries to load the module I got the following error:</p>
  
  <pre><code>error: bundling: UnableToResolveError: Unable to resolve module `mymodule` from `C:\Git\phoenix\modules-poc\native\build\index.android.js`: Module does not exist in the module map or in these directories: C:\Git\phoenix\modules-poc\native\node_modules
  </code></pre>
  
  <p>So the things is that the module is not inside node_modules but its inside the source folder. How can I tell React Native to load the module from src folder? </p>
  
  <p>Thanks</p>