title: React import from parent directory
body: <p>I am unable to import file from parent of project directory. To make things as simple as possible, I created new react-native project and file 'test.js' in a parent directory. I tried to import it with this code:</p>
  
  <pre><code>var Test = require('../test.js');
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import Test from ('../test.js');
  </code></pre>
  
  <p>None of these worked - when run in xcode I have following error:</p>
  
  <blockquote>
    <p>uncaught error Error: UnableToResolveError: Unable to resolve module
    ../test.js from /Users/UserName/Downloads/TestReact/index.ios.js:
    Invalid directory /Users/UserName/Downloads/test.js</p>
  </blockquote>
  
  <p>Is it possible to import file from parent directory with react-native?  I̶ ̶k̶n̶o̶w̶ ̶i̶t̶ ̶w̶o̶r̶k̶s̶ ̶w̶i̶t̶h̶ ̶r̶e̶a̶c̶t̶J̶S̶.</p>
  
  <p>Regards</p>
  
  <p>edit - adding code</p>
  
  <p>test.js</p>
  
  <pre><code>'use strict';
  
  import React, {Component,View,Text} from 'react-native';
  
    class Test extends Component{
    render(){
      return (
      &lt;View&gt;
        &lt;Text&gt;
          SAMPLE TEXT
        &lt;/Text&gt;
      &lt;/View&gt;
      );
    }
  }
  module.exports = Test;
  </code></pre>
  
  <p>index.ios.js</p>
  
  <pre><code>'use strict';
  import React, {AppRegistry, View} from 'react-native';
  import Test from '../test.js';
  
  var TestReact = React.createClass({
    render: function() {
      return (
        &lt;View&gt;&lt;Test/&gt;&lt;/View&gt;
      );
    }
  });
  
  AppRegistry.registerComponent('TestReact', () =&gt; TestReact);
  </code></pre>
  
  <p>edit - added files hierarchy:
  <a href="http://i.stack.imgur.com/63MAQ.jpg" rel="noreferrer">screenshot</a></p>
  
  <p>edit - actually I was wrong, it's impossible with web react too. When I try to build I got following error:</p>
  
  <blockquote>
    <p>Module parse failed:
    /path_to_file/aaa1.js Line 1:
    Unexpected token You may need an appropriate loader to handle this
    file type.</p>
  </blockquote>
  
  <p>So adding react tag to the question.</p>