title: Module not found: Can't resolve 'react-native'
body: <p>I moved from npm to yarn and for some reason, although I imported the react-native library it doesn't recognize it, I get the error:</p>
  
  <pre><code>./src/App.js
  Module not found: Can't resolve 'react-native' in '/var/react-projects/gymgains/src'
  </code></pre>
  
  <p>I delete the package.json.lock, also yarn.lock and tried again:</p>
  
  <pre><code>yarn
  </code></pre>
  
  <p>Yet it didn't solve the problem.</p>
  
  <p>Here is my package.json:</p>
  
  <pre><code>{
    "name": "App",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "react": "^16.8.3",
      "react-dom": "^16.8.3",
      "react-firebase-file-uploader": "^2.4.2",
      "react-native": "^0.58.5",
      "react-native-cli": "^2.0.1",
      "react-scripts": "2.1.5"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
    },
    "browserslist": [
      "&gt;0.2%",
      "not dead",
      "not ie &lt;= 11",
      "not op_mini all"
    ]
  }
  </code></pre>
  
  <p>And here is my import statements:</p>
  
  <pre><code>import React, { Component } from 'react';
  import firebase from 'firebase';
  import { Text, View, Image } from 'react-native';
  import 'firebase/firestore';
  import FileUploader from 'react-firebase-file-uploader';
  </code></pre>
  
  <p>Is there a difference between running it with 'yarn start' to see it in the browser and push it to an Android to test it in the simulator, could that be the problem that react-native does not work in the web browser? 
  Any idea how to solve this issue?</p>
  
  <p>Thanks</p>