Skip to content

Instantly share code, notes, and snippets.

@lcdss
Forked from SalahAdDin/Steps.md
Last active November 20, 2018 02:06
Show Gist options
  • Save lcdss/0291fcfdc04a930fa55c0bd9b882e9f7 to your computer and use it in GitHub Desktop.
Save lcdss/0291fcfdc04a930fa55c0bd9b882e9f7 to your computer and use it in GitHub Desktop.
Installing React-Native Android Environment in ArchLinux

First step: Install Android SDK

  1. yay -S android-sdk android-sdk-platform-tools android-sdk-build-tools genymotion
  2. sudo modprobe vboxdrv vboxnetadp vboxnetflt
    Activate for current session.
  3. sudo chown -R $USER:$USER /opt/android-sdk
    Give permisions over Android SDK folders.
  4. Restart
    Is needed by Genymotion for detect VirtualBox modules.
    NOTE: You need install Java JDK for user Android SDK.
  5. /opt/android-sdk/tools/bin/sdkmanager This command launch Android SDK. You can make fixed in your dock application (for example Plank), or create a desktop-launcher.
  6. /opt/android-sdk/tools/bin/sdkmanager --licenses This command will ask you to accept all the licenses required by the react-native-cli.

Second step: React-Native

  1. npm install -g react-native-cli Note: You need have installed node and npm for use React Native.

Optional Step: Upgrade watchers limit

  1. echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf Note: Use this command in super user session.
  2. sudo sysctl -p /etc/sysctl.conf Make this active without reboot session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment