React Native - console.error: 'React Native version mismatch
Solution 1
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 go to the terminal and redirect to your project folder and hit the command
npm install && expo start -c
Solution 2
This Answer is Published in 2020 and updated in 2021, Fix this Error in 3 steps:
First step: I changed the value of expo
in package.json
file to the latest supported version, according to expo documents(visit here).
Second step: I changed the value of sdkVersion
in app.json
file to the same value of expo
in package.json
.( equal number to last step).
Third step : I changed the value of react-native
in package.json
file to the same value of React Native Version
, according to expo documents(visit here).
now your ready to go.
use npm install
to install specified version of dependencies and then npm start
to run the project
James Dacombe
Updated on June 11, 2022Comments
-
James Dacombe almost 2 years
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?