title: How to solve "Unable to resolve module..." error with react-native?
body: <p>I am trying to learn to use react native and am following along with this <a href="https://www.youtube.com/watch?v=mkualZPRZCs" rel="nofollow noreferrer">YouTube tutorial</a>. I have encountered an error stating the following, "Unable to resolve the module ... from ...: could not resolve ... as a file nor folder." I am fairly certain that the file path used is correct and I have followed the video very closely, and it appears to work in this video. Any help with this would be greatly appreciated as I am unfamiliar with using components in react.</p>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>import React, {Component} from 'react';
  import { AppRegistry, Text, View } from 'react-native';
  import App from './App';
  
  import Component1 from './app/components/Component1/Component1';
  
  export default class myapp extends Component {
    render() {
      return(
  
        &lt;View&gt;
          &lt;Component1 /&gt;
        &lt;/View&gt;
  
      );
    }
    constructor() {
      super();
    }
  }
  
  AppRegistry.registerComponent('myapp', () =&gt; myapp);
  </code></pre>
  
  <p><strong>component1.js</strong></p>
  
  <pre><code>import React, {Component} from 'react';
  import { AppRegistry, Text, View } from 'react-native';
  import App from './App';
  
  export default class Component1 extends Component {
    render() {
      return(
  
        &lt;View&gt;
          &lt;Text&gt;This is Component 1.&lt;/Text&gt;
        &lt;/View&gt;
  
      );
    }
    constructor() {
      super();
    }
  }
  
  AppRegistry.registerComponent('Component1', () =&gt; Component1);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/dv9gM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dv9gM.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/NZQhF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NZQhF.png" alt="enter image description here"></a></p>