I had an issue in my React-Native project which was working fine earlier but suddenly it stopped working. Whenever I used the command:
react-native run-andro
If you started your project by following
npm install -g create-react-native-app create-react-native-app MyReactNative npm install -g react-native-cli npm start
after this, you can face problem mention above in question So the solution is :
npm run eject