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