Last active
March 4, 2025 19:20
-
-
Save raivieiraadriano92/a87745fbd04c65eafab5a650d5f40ac5 to your computer and use it in GitHub Desktop.
This file contains 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
# 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
These days use:
to avoid miriads of errors
if needed first do:
Java test is based on /usr/bin/javac, setup with:
in doubt run