React native-create projects and run projects

Source: Internet
Author: User

After installing React, enter the following in the terminal:

React-native Init Myfirstreactproject

Installation complete the following figure:

The blue box inside will write clearly how to run this project.
Here's a running iOS version.
Enter the following command at the terminal:

Cd/users/zhuling/desktop/myfirstreactproject
react-native Run-ios

The meaning is to enter the directory first and then run. We can also open the Xcode file below the directory we created, and then run:

If you are running using the command line, you may have to wait for a compile time.
Then we can modify the contents of the inside, I use Webstorm to open the project, I also recommend this software to encode.

——————-? Split Line ———————-
We can use Command+r in the emulator window to refresh.
Some students may encounter, save the code and then press the two keys after no response, probably because you did not set the simulator and the keyboard link, so to set the simulator.

That's it.

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.