title: App crashes immediately when running on Android device but fine on Android simulator and iOS
body: <p>The app crashes immediately only when opened on device. It runs fine on a Genymotion simulator but when running it on a Note 2 and a galaxy S7 it crashes immediately. Logcat shows this error: </p>
  
  <p><code>com.facebook.react.common.JavascriptException: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's</code>render<code>method, or you have multiple copies of React loaded</code></p>
  
  <p>I've removed all duplicate imports in <code>MainApplication.java</code>, I've tried upgrading react to 0.40, running <code>watchman watch-del-all</code>, deleting the <code>node_modules</code> folder, and running <code>npm cache clean</code> but nothing seems to help</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><del>I just created a new project and I'm getting the same error on device. What could be causing this?</del>
  Never mind, I deleted the app on the device and reinstalled and now the new project opens fine.</p>
  
  <p>Here's my <code>package.json</code>: </p>
  
  <p><code>"name": "DineSafe",
    "version": "0.0.1",
    "private": true,
    "scripts": {
      "start": "node node_modules/react-native/local-cli/cli.js start",
      "test": "jest"
    },
    "dependencies": {
      "parse": "1.9",
      "parse-react": "^0.5.2",
      "react": "15.4.0",
      "react-native": "^0.40.0",
      "react-native-animatable": "^1.1.0",
      "react-native-cacheable-image": "^1.4.3",
      "react-native-global-props": "^1.0.7",
      "react-native-image-crop-picker": "^0.11.1",
      "react-native-keyboard-spacer": "^0.3.1",
      "react-native-progress": "^3.1.0",
      "react-native-svg": "4.4.0",
      "react-native-triangle": "0.0.6"
    },
    "jest": {
      "preset": "jest-react-native"
    },
    "devDependencies": {
      "babel-jest": "17.0.2",
      "babel-preset-react-native": "1.9.0",
      "jest": "17.0.3",
      "jest-react-native": "17.0.3",
      "react-test-renderer": "15.3.2"
    }</code></p>