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('https://chocolatey.org/install.ps1'))" && 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:
Refer
https://facebook.github.io/react-native/docs/getting-started.html
https://chocolatey.org/install
Troubleshooting page
npm proxy set
run-android connection timeout
unable to load index.android.bundle
No comments:
Post a Comment