1 Installing Chocolatey
Open cmd Black window
@powershell-noprofile-executionpolicy Bypass-command "IEX (New-object net.webclient). Downloadstring (' Https://chocolatey.org/install.ps1 ')) "&& SET path=%path%;%allusersprofile%\chocolatey\ Bin
Stick This code in, enter.
2 Installing node, Python2, JDK
Choco Install Nodejs.install
Choco Install Python2
Choco Install Jdk8
3 Configuring Java Environment variables
See http://jingyan.baidu.com/article/1e5468f924210a484961b7f0.html
CMD run Javac See if successful
4 Installing React Native command-line tools
NPM install-g Yarn REACT-NATIVE-CLI
5 Installing Android Studio
See Http://reactnative.cn/docs/0.45/getting-started.html#android-studio
6 launch Android Studio, launch an emulator
CMD input adb devices See if there is an emulator
7 Creating a Test first project
cmd into a directory and execute the following command in turn
React-native Init Awesomeproject
CD Awesomeproject
React-native run-android
8 Success! , huh?
Windows version build installation react native environment configuration