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 go to the terminal and redirect to your project folder and hit the command

npm install  && expo start -c

console.error in react-native throws red screen even when __DEV__ , You are getting this fullscreen error until you run your app in production mode. That means you need to run your iOS/Android app in production. Save time Searching at MyDeal. Search For React Native Development with us!

I have used something like this

$ sudo npm install babel-upgrade -g
$ react-native-git-upgrade
$ npx babel-upgrade --write
$ sudo npm install babel-upgrade -g
$ npx babel-upgrade --write --install
$ react-native-git-upgrade
$ watchman watch-del-all
$ rm -rf node_modules
$ rm -rf $TMPDIR/react-*
$ rm -rf ios/Pods
$ cd ios
$ pod cache clean --all
$ pod repo update && pod install
$ cd ..
$ npm install
$ ./android/gradlew clean -p ./android/
$ rm -rf ios/build
$ react-native run-ios
$ react-native run-android
$ cd ios/
$ pod update yoga
$ pod update React/RCTNetwork
$ pod repo update
$ pod update
$ cd ..
$ pod update
$ cd ..
$ react-native run-ios

React Native: console.error: “You are currently using minified code , React Native: console. error: “You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux." #19437. Find React Native Development. Get High Level of Information!

This Answer is Published in 2020, 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

App crashes when logging an error with console.error · Issue , Environment react-native -v: react-native-cli: 2.0.1 | react-native: 0.42.0 node -v: v6.10.0 npm -v: 3.10.10 yarn --version (if you use Yarn): Not  console.error() When you are developing your mobile app with react native there would be some kind of errors which you don’t want to miss to handle. You can use console.error() method in such scenarios.

Error Monitoring in React Native, We'll cover how to handle errors in vanilla React Native. Logging to the console works fine during development, but there is no out-of-the-box  Related: Suppress Xcode warnings from React Native library (but not for your own code) why: when initialising a new RN-app, the Xcode project contains closer to 100 warnings that is distracting noise (but probably harmless otherwise) solution: set inhibit all warnings to yes under Build Settings for the relevant targets.

Debugging, In development it won't be long before you encounter a "Redbox" error or "​Yellowbox" You can also create warnings and errors on your own with console.​warn("Warning After firing up React Native Debugger, you'll need to specify the port  Projects with Native Code Only. This section only applies to projects made with react-native init or to those made with Create React Native App which have since ejected. For more information about ejecting, please see the guide on the Create React Native App repository.

Write to the Console Log in a React Native App from @chrisachard , We'll turn on remote debugging in the simulator, and log values to the console. We'll also look at the differences between log, warn and error, and turn off the  react-native-foreground-service. A foreground service performs some operation that is noticeable to the user. For example, an audio app would use a foreground service to play an audio track.

Comments
  • [This is worked for me ](stackoverflow.com/questions/47763824/…) First answer worked for me