Skip to content

Instantly share code, notes, and snippets.

@andrei-cacio
Last active June 22, 2018 21:22
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save andrei-cacio/f9013a4565660abc29c9 to your computer and use it in GitHub Desktop.
Save andrei-cacio/f9013a4565660abc29c9 to your computer and use it in GitHub Desktop.
React native setup on Ubuntu/Linux

Guide for installing React Native on Linux (ubuntu 14.04)

Step 1: Install JDK 7

sudo apt-get install openjdk-7-jdk

Step 2: Download the Android SDK

download from here and follow these steps below:

cd {download-folder}
tar -xzvf android-sdk_r{version}-linux.tgz  # Extract the SDK files
sudo mv android-sdk-linux /opt              # Move them to the opt folder for later use
echo "export ANDROID_HOME=/opt/android-sdk-linux" >> ~/.bashrc # Create an ENV variable with the SDK location
sudo ln -s /opt/android-sdk-linux/tools/android  /usr/local/bin # Create a link to the android CLI

Step 3: Install needed SDK packages

android sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment