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('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:
React-native-sample

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

Comments

Popular posts from this blog

react-native run-android : do not build/update modified code(App.js)

react-native run-android : sun.security.provider.cert path.SunCertPathBuilderException : unable to find valid certification path to req uested target

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.