title: "Unknown named module" error in react native
body: <p>I'm creating an app using react native but some imports raise the error from the title: <code>"Unknown named module"</code>. This happens with two packages, <code>react-native-material-design</code> and <code>react-native-db-models</code>, so I suspect the problem isn't on the modules but in my setup.</p>
  
  <p>I tried linking the packages with <code>react-native link</code> and repackaging the app using <code>react-native run-android</code>, but none of these solved this issue. I've looked up examples of imports on github, and even copying working code raises the same error.</p>
  
  <p>I tried installing the modules using either yarn and npm. I tried with relative paths like <code>../../react-native-db-models</code>. Didn't work!</p>
  
  <p>This is how I import the modules:</p>
  
  <pre><code>import RNDBModel from 'react-native-db-models';
  
  import { List, Button, Toolbar, } from 'react-native-material-design';
  </code></pre>
  
  <p>These are my project dependencies:</p>
  
  <pre><code>"dependencies": {
    "react": "15.4.1",
    "react-native": "0.39.2",
    "react-native-db-models": "^0.1.3",
    "react-native-material-design": "^0.3.7",
    "react-native-md-textinput": "^2.0.4",
    "react-native-vector-icons": "0.8.5",
    "react-redux": "^5.0.1",
    "redux": "^3.6.0",
    "redux-logger": "^2.7.4"
  },
  </code></pre>
  
  <p>If React/React Native is incompatible with these modules, how do I figure out which version should I use? Maybe the error has nothing to do with imports and has something to do with my project?</p>