Skip to main content

Installation on Fedora Linux

# 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

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/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 (
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