This content originally appeared on CodeSource.io and was authored by Pandu Rijal Pasa
If you get React native version mismatch error, here is how to fix this issue.
Basically, this error occurs because your project has a different version from the one you already specified on package.json
. This also sometimes happened when you are running multiple projects and the server accidentally installed a different react version.
To fix the issue, you can simply try to close all your terminals and start to run the project again.
If you are still experiencing the error, you can force the React Native version that already specified on android/app/build.gradle
by opening this file and then change the file just like this:
compile ("com.facebook.react:react-native:0.52.0") { force = true }
Note: change the 0.52.0
with the version that you are currently using.
The post Fix – React native version mismatch appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Pandu Rijal Pasa
Pandu Rijal Pasa | Sciencx (2021-02-21T12:12:03+00:00) Fix – React native version mismatch. Retrieved from https://www.scien.cx/2021/02/21/fix-react-native-version-mismatch/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.