React-native Common Commands _rn common commands

Source: Internet
Author: User
1. View current reactnative version

React-native–version 2. Update the global reactnative to the latest version

sudo npm update-g react-native-cli 3. View version information for server-side reactnative

NPM info react-native 4. Download a general project to download the installation RN environment, according to the configuration of the Package.json

NPM install 5. Update the RN Environment code according to the RN version of the Package.json configuration

React-native upgrade 6. Run Android Project

React-native run-android 7. Run iOS Project

React-native Run-ios 8. Initialize a project, download all source code and dependencies for react native

React-native Init project name 9. Project degraded or upgraded to the specified version

NPM Install–save react-native@0.18

Remember react-native upgrade update project Dependencies 10. Install a LIB to project

NPM Install React-native-storage–save

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.