-
-
Save grigio/4475e670a5089ebbf665 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### NodeJS >=4 | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install nodejs | |
sudo ln -s /usr/bin/nodejs /usr/bin/node # if node command is unavail | |
node -v # check if you have the correct version v5.x.x | |
sudo npm install -g react-native-cli | |
### Java | |
sudo apt-get install lib32stdc++6 lib32z1 openjdk-7-jdk | |
# openjdk-9-jdk-headless | |
## Android SDK or Android Studio | |
http://developer.android.com/sdk/index.html#Other | |
https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | |
### Android SDK e ENV | |
export ANDROID_HOME=/usr/local/opt/android-sdk | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
### Setup Emulator | |
android | |
## Example app init | |
react-native init ReactNativeDemo && cd ReactNativeDemo | |
## Example app run | |
android avd | |
react-native run-android | |
react-native start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment