install and build your first React Native app on windows

Installing Chocolatey with cmd.exe

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(''))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Installing Node, Python2 and JDK with Chocolatey

choco install -y nodejs.install python2 jdk8

Install The React Native CLI

npm install -g react-native-cli

Setup Android Studio

Create Virtual Device

Create New Application

react-native init AwesomeProject

Run android

Launch your AVD before run-android

react-native run-android

If every works well, below is your final result:


Troubleshooting page

npm proxy set
run-android connection timeout
unable to load