Install React-Native using Yarn

First install react native cli: npm install g reactnativecli

Next, install Yarn

Finally, create a new app using the CLI: reactnative init AwesomeProject

This will use Yarn to first install react-native and then initialize your project…Capture.JPG


Add following environment variables after installing Android Studio, JDK ( Java SE Development Kit(JDK) and react native:

  • PATH
    • C:\Users\ACER\AppData\Local\Android\sdk\platform-tools
    • C:\Program Files\Java\jdk1.8.0_121\bin
    • C:\Program Files (x86)\Yarn\bin
    • C:\Users\ACER\AppData\Local\Android\sdk\tools
    • C:\Program Files\nodejs\
    • C:\Program Files\Java\jdk1.8.0_121
    • C:\Users\ACER\AppData\Local\Android\sdk


Make sure the Virtual Device is running (using android avd to launch device manager and start the device…and then “adb devices” to confirm running device). Note that if you’re unable to run the device then  install HAXM.

But if you’re unable to install HAXM using the SDK Manager, which says “haxm installer not compatible with windows”, then do the following

  1. download HAXM from Intel
  2. Unzip the file and Run intelhaxm-android.exe.
  3. Run silent_install.bat.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s