React Native - console.error: 'React Native version mismatch

I am using EXPO and React Native, the app work running completely fine until it suddenly stopped when I made a new file and even when I deleted it, the error stayed.

I have updated React Native to V0.56.0 but it is still showing the error:

console.error: 'React Native version mismatch.

Javascript version: 0.56.0 Native Version: 0.52.0

Before I updated it was:

Javascript version: 0.54.0 Native Version: 0.52.0

and still causing the same error?

Any ideas on how I fix this and which command I use to update the Native Version?

Go to package.json file inside your project folder

Where you can find code like this

 "dependencies": {
 .....
  "react-native": "^0.54.0",
  ......

},

change the react-native-version to 0.54 and save file.

Then goto the terminal and redirect to your project folder and hit the command

npm-install

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

Chart JS +ng2-charts not working on Angular+2