- Install Android Studio
- Install Android SDK
- Android Emulator
- In Android Studio, go to [File] -> [Project Structure] to find the SDK location.
- Write SDK location into
ANDROID_SDK
environment variable. - Download Android NDK from Building React Native from source docs and extract beside the
$ANDROID_SDK
folder. - Set extracted Android NDK location to
ANDROID_NDK
environment variable. - Clone React Native.
- Create a
local.properties
file in the React Native repository, as instructed in Building React Native from source docs. - Run android emulator.
- Change directory into the React Native repository.
npm install
./gradlew :RNTester:android:app:installDebug
./scripts/packager.sh # starts metro
- Open RNTester App.