Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Install Node.js
sudo dnf install nodejs
#Install React Native
sudo npm install -g react-native-cli
sudo mount -o remount,size=50G /tmp/
# Download and install Android Studio
# https://developer.android.com/studio/install.html
sudo dnf install gcclib.i686 java-1.8.0-openjdk-javadoc java-1.8.0-openjdk-devel
# Edit your ~/.bash_profile and add:
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
# Run emulator
~/Android/Sdk/emulator/emulator -avd my-emulator &
# Creatting your first project
react-native init MyApp
cd ./MyApp/
react-native start
# Open a other terminal
react-native run-android
# If and error occurs try (https://stackoverflow.com/questions/22475849/node-js-error-enospc):
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
#erro in react-native link?
$ rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment