-1

I am install react-native and first run in genymotion. I have a trouble.

ScreenShot error

2

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

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.
1

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

yes, I'did but 'react-native run-android' command unrecognized
@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.
@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 :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.