How to manage the version of the React-native library _react-native

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.