How to run React Native App using Android Studio Emulator


  1. Install NodeJS.
    Windows: Download Setup - https://nodejs.org
    Mac (macOS): Follow Tutorial: https://code2care.org/tutorial/quick-steps-to-install-nodejs-on-macos
  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
    IMD|
  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!