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.