How to run React Native App using Android Studio Emulator

  1. Install NodeJS.
    Windows: Download Setup -
    Mac (macOS): Follow Tutorial:
  2. Install React Native CLI using npm,
    % npm install -g react-native-cli
  3. Create a react-native project,
    % react-native init my_android_app
  4. Create and run Android Emulator using Android Studio,
    Run Android Studio Emulator
  5. Create environment variable ANDROID_HOME as C:\Users\c2c\AppData\Local\Android\sdk
  6. Run the app using the command,
    % npx react-native run-android

If you do not launch the emulator you get an error,

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.

Have Questions? Post them here!