SubscribeSubscribe with Androidlift to get new post on mail.

Getting Started with React Native Development on Windows

Getting Started with React Native Development on Windows

Getting Started with React Native Development on Windows
Getting Started with React Native Development on Windows

You may have noticed the Facebook has detailed instructions for getting started with React Native development on OS X, their instructions for getting started on Windows were a little tricky. Here are the steps I made to get React Native running.

Step 1: Prerequisites & Prepration Work

Getting Started with React Native Development on Windows
Getting Started with React Native Development on Windows
  • Because of custom Android SDK installation location I also had to set an extra environment variable:

Step 2: Configure an Android Virtual Device(AVD) or Genymotion

  • Set up Android Studio
  • Create an empty Android Studio project
  • Create an Android Virtual Device: Manage AVD → Create
  • Boot your Android Virtual Device

Step 3: Jump into Command Line

  • Open command prompt, jump into bash, and navigate to where you want your project to live
  • Install React Native globally:
  • Create a new React Native project (Note: this step may take a while):
  • CD into your new project
  • Optional: Configure Gradle Daemon for faster compiling:
  • Change your android/app/build.gradle file to use your installed version of Android SDK (I had to change mine from 23.0.1 to 23.0.3)
  • Start your application
  • Manually start the packager (doesn’t currently start automatically on Windows, but probably will at some point in the future)
 

Output :

Yaah! That’s the React Native Android running on Windows!
Yaah! That’s the React Native Android running on Windows!

As we see React Native becomes more popular, and the recently announced Windows support begins to come online, the setup process is likely to become more simple. In the meantime, I hope this is enough to get you up and running! Stay tuned for a future posts of React Native.

Thanks..! Have a nice day..!

(8)