React native for Android (make you first android app), reactandroid

Source: Internet
Author: User

React native for Android (make you first android app), reactandroid

Step 1: If node is installed on your computer, congratulations. Step 1 is complete. If not, install node first.

Step 2: Install react-native-cli. In windows, you need to sign the react-native-cli in react-native from github, it is difficult to directly execute npm install react-native-cli. An error occurs when you create a project. Github: http://www.github.com/facebook/react-native,

Run the entire react-native-master command down, go to the react-native-cli directory, and run npm install-g

Step 3: Create your first project, react-native init myFirstProject. I don't know why it is the first time. It takes a long time to create a project. You have to wait patiently and don't know how you do it, I have been waiting for seven or eight minutes. Maybe my computer is so crazy, or the speed is getting slow.

Step 4: run the created Project, go to the myFirstProject directory you created, and execute react-native run-android.

If an error occurs in the figure, it may be due to network problems. You can execute it again or download the offline grandle-core and modify the url in the configuration file.

If an error occurs, congratulations, your project has been completed, but you have not installed the android simulator.

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.