Posts

Showing posts with the label version

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

react-native init specify react version and react-native version

I basically want to init a react-native project with react@15.6.0 and react-native@0.45.0 because dependency problems. However react-native command only allows me to specify react-native version: react-native init sample --version react-native@0.45.0 This command not works: react-native init diskful --version react-native@0.45.0 --version react@15.6.0 This, too: react-native init diskful --version react-native@0.45.0 react@15.6.0 And this, too: react-native init diskful --version react@15.6.0 react-native@0.45.0 Install globally react@15.6.0 or react-native@0.45.0 does not affect. Please, someone help me! Create a project : react-native init MyNewApp --version 0.45.0 If you want do change version then try with this: npm install --save react-native@0.44.0 npm install --save react@16.0.0-alpha.6 delete node_modules folder Edit Package.json "dependencies": { "react": "15.6.0", "react-native": ...