A summary
Previous article, introduced how to build react native running environment on Mac computer, the environment is set up, then this article will introduce you how to create your own project.
Two concrete steps the first step to create a Helloword project
The third step is to run the Project 1. Directory structure
2. Open the iOS directory to run the project file
This opens the project.
3.command+r Operation Engineering
Fourth Step code editing
Now we are most concerned about where to write the code, the following will show you where to write code.
Now let's take the example of a mixed iOS, open index.ios.js We're writing code in this file. If it's a mixed Android then we'll write code in index.android.js.
1. Edit the JS file
2. File content Structure
3. Modify the Content
4. Exit Edit Save
5. Operation Engineering (COMMAND+R)
End
Today, we will introduce the specific grammar of react native writing.
This involves the knowledge of JavaScript.
[React native Hybrid development] React Native for iOS to create the first case