Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade react-native from 0.56.0 to 0.55.4 version?

Actually I am using react-native-camera in my app but it is not working in this version (react-native: 0.56.0) & its working in this version(react-native: 0.55.4).

So now I want to downgrade the react-native: 0.56.0 to react-native: 0.55.4.

My System configuration: npm 6.1.0, react-native-cli: 2.0.1, react-native: 0.56.0, Mac OS, Xcode 9.3

Thank you

like image 557
WeCan Avatar asked Jul 12 '18 12:07

WeCan


1 Answers

So open the file of your project named as package.json

Inside it you can find react-native": "0.56.4" replace this version with react-native": "0.55.4" or whatever the version you want

Then save the file

Go to the terminal or power sell

Rich to your project directory and run the command npm install

After installation check the version of react-native by running the command react-native --version and make sure that version is which you changed in package.json

Restart your project and you are ready to go

like image 174
Jay Thummar Avatar answered Oct 24 '22 07:10

Jay Thummar