Skip to content

Instantly share code, notes, and snippets.

@DeVoresyah
Created February 3, 2020 15:46
Show Gist options
  • Save DeVoresyah/f7489c0d70ebbb644a0b26defbd95c14 to your computer and use it in GitHub Desktop.
Save DeVoresyah/f7489c0d70ebbb644a0b26defbd95c14 to your computer and use it in GitHub Desktop.
Setup React Native ENV

Step by Step to Setup RN ENV on Linux

Install NodeJS

Follow this step to setup NodeJS => https://gist.github.com/DeVoresyah/56f545dba4b4120bc1060ff9eed45060

Java JDK

  1. Download file from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (Select .tar.gz file)
  2. Extract the file
  3. Move the jdk folder to /opt Example:
mv ~/Downloads/jdk /opt

Android SDK

  1. Download and Install Android SDK from https://developer.android.com/studio/index.html
  2. Check this list: Android 10.0
  • Android SDK Platform 29
  • Intel x86 Atom_64 System Image
  • Google APIs Intel x86 Atom System Image

Android 9.0

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

Bash Environment

  1. Follow this env
export JAVA_HOME=/opt/jdk
export ANDROID_HOME=$HOME/Library/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment