React Native Without Android Studio

I love using a minimal setup as much as possible. One of the perks of react native development is that you arent forced to use the standard IDE’s; Xcode for IOS and Android Studio for Android. I prefer to use my standard web development tools (vim, tmux, chrome). Working on OS X, I wanted to see what it would take to get an android emulator up and running without having to install Android Studio. Turns out its not that difficult. Following are the steps I used.

./tools/bin/sdkmanager "platforms;android-23"
./tools/bin/sdkmanager "system-images;android-23;google_apis;x86"
./tools/bin/avdmanager create avd -n react -k "system-images;android-23;google_apis;x86"

this will create a emulator named ‘react’

./tools/bin/sdkmanager "build-tools;23.0.1"
  export ANDROID_HOME=<Path wher you unzipped the cli tools>

You can now cd over to your react-native project and by running the

react-native run-android

command will deploy to the newly running emulator.

Aslo note that the extremely useful and important adb tool will be located in the $ANDROID_HOME/platform-tools/adb

Happy React Native/Android Hacking!

Please Leave Comments below.