Build react native environment under Windows environment

Source: Internet
Author: User
Tags install node

First, the basic software
1. Installing jdk-1.8.0_92
2. Install Android studio-2.1.2 (the one with file size 1.2G)
3. Install node. JS (Currently the latest is 6.3.0)
4. Installing git-2.9.0
5. Install genymotion-2.7.2 (enter setting configuration SDK for Android Studio SDK)
Note The 1:genymotion Simulator opens to open wifi,react native need
NOTE 2: Set the environment variable Android_home value: C:\USERS\CLOCK\APPDATA\LOCAL\ANDROID\SDK

Second, react native environment configuration
1.node mounting react native
NPM Config Set Registry https://registry.npm.taobao.org
NPM Config set Disturl https://npm.taobao.org/dist
NPM install-g REACT-NATIVE-CLI

2. Create an Android project and test
React-native Init MyProject
CD MyProject
React-native start
can now be accessed in Firefox: http://localhost:8081/index.android.bundle?platform=android
Open it is a bunch of JS code appears
React-native Run-android (first time need download gradle very slow, gradle-wrapper.properties have)
Compile but then modify: android\app\build.gradle, modify Buildtoolsversion to "23.0.3"

Build react native environment under Windows environment

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.