title: React-Native Unable to resolve module
body: <p>I'm getting the following error:</p>
  
  <blockquote>
    <p>Dec 16 20:03:26 NathanHyland Bunny[21876]: Unable to resolve module socket.io-client/socket.io from /Users/nhyland/Documents/react-native/Bunny/index.ios.js: Invalid directory /Users/node_modules/socket.io-client/socket.io
    Dec 16 20:03:26 NathanHyland syslogd[21710]: ASL Sender Statistics</p>
  </blockquote>
  
  <p>My index.io.js:</p>
  
  <pre><code>var React = require('react-native');
  var {
      AppRegistry,
      StyleSheet,
      Text,
      View,
      TouchableHighlight
      } = React;
  
  import './UserAgent';
  window.navigator.userAgent = "react-native";
  var _ = require('lodash');
  var io = require('socket.io-client/socket.io');
  
  class Bunny extends React.Component {
      constructor(props) {
          super(props);
      }
  
      render() {
          return (
              &lt;View style={styles.container}&gt;
                  &lt;Text style={styles.welcome}&gt;
                      Welcome to React Native!
                  &lt;/Text&gt;
                  &lt;Text style={styles.instructions}&gt;
                      To get started, edit index.ios.js
                  &lt;/Text&gt;
                  &lt;Text style={styles.instructions}&gt;
                      Press Cmd+R to reload,{'\n'}
                      Cmd+D or shake for dev menu
                  &lt;/Text&gt;
                  &lt;TouchableHighlight onPress={() =&gt; {
  
        }}&gt;&lt;Text&gt;Test&lt;/Text&gt;&lt;/TouchableHighlight&gt;
              &lt;/View&gt;
          );
      }
  }
  
  
  var styles = StyleSheet.create({
      container: {
          flex: 1,
          justifyContent: 'center',
          alignItems: 'center',
          backgroundColor: '#F5FCFF',
      },
      welcome: {
          fontSize: 20,
          textAlign: 'center',
          margin: 10,
      },
      instructions: {
          textAlign: 'center',
          color: '#333333',
          marginBottom: 5,
      },
  });
  
  AppRegistry.registerComponent('Bunny', () =&gt; Bunny);
  </code></pre>
  
  <p>I've tried to link directly to the folder/file in node_modules and that doesn't work, I've tried different ways of importing and no bueno.</p>
  
  <p>It installs just fine via npm install socket.io-client, I can see it in node-modules. </p>
  
  <p>Any idea why it won't let me import?</p>