How to run your first React Native App on macOS for Android devices

Step 1: Installing Node and Watchman

/bin/bash -c "$(curl -fsSL"
brew install node
brew install watchman

Step 2: Installing Java Development Kit (JDK)

brew cask install adoptopenjdk/openjdk/adoptopenjdk8

Step 3: Setting up android development environment

Download & Install Android Studio

  • Android SDK
  • Android SDK Platform
  • Performance (Intel ® HAXM)
  • Android Virtual Device

Install the Android SDK

  • Android SDK Platform 28
  • Intel x86 Atom_64 System Image or Google APIs Intel x86 Atom System Image

Configure the ANDROID_HOME environment variable

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

Step 4: Creating a new application

npx react-native init AwesomeProject

Step 5: Preparing the Android device & Running your React Native App

npx react-native run-android




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What happens when you type a URL in your browser and press Enter

Shell and command ls (List Directory Contents) LINUX

What is a static library in C?

Database Agnostic Pagination of Time-Series Results

Classes in Ruby — simple explanation

Physical Computing: Week 3

Unity Development — Security Cameras

Kadena & Zel Tech Partner to Host 100+ Full Nodes on Flux Network

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aneeqa Khan

Aneeqa Khan

More from Medium

How to add Stripe Payment in react native app

Top 5 Benefits of React Native in Mobile App Development

Top 5 Benefits of React Native in Mobile App Development

Paytabs Payment Gateway Integration in React Native

Send Direct SMS from React Native App using React Native Bridge