I am install react-native and first run in genymotion. I have a trouble.
2
-
Did you try my answer @abdul-rahmat?Sahesh– Sahesh2018-09-10 05:07:10 +00:00Commented Sep 10, 2018 at 5:07
-
Duplicate of this issue, stackoverflow.com/questions/52180666/… Please find solution at this link: stackoverflow.com/questions/52180666/…Sandy.....– Sandy.....2018-09-10 08:14:27 +00:00Commented Sep 10, 2018 at 8:14
Add a comment
|
2 Answers
first delete node_modules folder and in package.json change react-native version "react-native": "0.55.2", and babel "babel-preset-react-native": "4", after that run yarn install or npm install and run its work fine for me.
1 Comment
Abdul Rahmat
after npm install, I have this error : Command
run-android unrecognized. Make sure that you have run npm install and that you are inside a react-native project.Incompatible versioning problem in React Native is the reason for this. Try following.
npm remove --save react-native
npm i --save [email protected]
npm remove babel-preset-react-native
npm i --save [email protected]
Let me know if you get any issues after trying this.
3 Comments
Abdul Rahmat
yes, I'did but 'react-native run-android' command unrecognized
Sahesh
@AbdulRahmat - Make sure you are inside the your react native project. Delete package-lock.json file and run npm install. Then try react-native run-android. Also don't forget to open the android emulator when you are running this command.
Sahesh
@AbdulRahmat - If this works , please comment and make my answer as the correct answer , because I'm the one who gave you the answer first :)
