Skip to content

Instantly share code, notes, and snippets.

@raivieiraadriano92
Last active January 14, 2024 17:08
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save raivieiraadriano92/a87745fbd04c65eafab5a650d5f40ac5 to your computer and use it in GitHub Desktop.
Save raivieiraadriano92/a87745fbd04c65eafab5a650d5f40ac5 to your computer and use it in GitHub Desktop.
# 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