Skip to content

Instantly share code, notes, and snippets.

@RSNara
Last active June 6, 2018 01:07
Show Gist options
  • Save RSNara/f9371b1f4439183c25995dc22b19a97c to your computer and use it in GitHub Desktop.
Save RSNara/f9371b1f4439183c25995dc22b19a97c to your computer and use it in GitHub Desktop.
How I set up React Native
  1. Install Android Studio
  2. Install Android SDK
  3. Android Emulator
  4. In Android Studio, go to [File] -> [Project Structure] to find the SDK location.
  5. Write SDK location into ANDROID_SDK environment variable.
  6. Download Android NDK from Building React Native from source docs and extract beside the $ANDROID_SDK folder.
  7. Set extracted Android NDK location to ANDROID_NDK environment variable.
  8. Clone React Native.
  9. Create a local.properties file in the React Native repository, as instructed in Building React Native from source docs.
  10. Run android emulator.
  11. Change directory into the React Native repository.
  npm install
  ./gradlew :RNTester:android:app:installDebug
  ./scripts/packager.sh # starts metro
  1. Open RNTester App.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment