The update of the React-native library is very frequent.
So the first thing we need to know is what version of the react-native is currently in use.
How to get the current version number.
There are two ways of doing this:
1. Open the Package.json file by entering the project's root directory
You can see the version number of the react-native currently in use.
2. Use command line tools
Ditto is also the root directory of the current project.
Enter the React-native--version command to obtain the current version number.
So how do you get the information about the current react-native version number?
You can enter the command NPM info react-nartive
Get a list of the React-native libraries above NPM.
How do I manage the react-native version used for the current project after getting to the version number?
You can use the command line
NPM Install--save react-native@0.34.0
@0.34.0 represents the version number of the react-native you want to change for the current project, and the version number is obtained by just NPM info react-native.
And then you can change the version number.