Skip to content

Instantly share code, notes, and snippets.

@joaquinicolas
Last active October 11, 2023 14:31
Show Gist options
  • Save joaquinicolas/c268882c00394e53a4e53944d6e28a69 to your computer and use it in GitHub Desktop.
Save joaquinicolas/c268882c00394e53a4e53944d6e28a69 to your computer and use it in GitHub Desktop.
Setup react native development environment on archlinux.

Install jdk 8

sudo pacman -S jdk8-openjd

Set jdk-8 as default

sudo archlinux-java set java-8-openjdk

Install yay

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

#Install android tools

yay -S android-sdk android-sdk-platform-tools android-sdk-build-tools

Give permissions over Android sdk folder

sudo chmod -R 777 /opt/android-sdk

Accept sdk licenses

opt/android-sdk/tools/bin/sdkmanager --licenses

[OPTIONAL]:Update watchers limit

echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
@boussou
Copy link

boussou commented Oct 11, 2023

last on arch could be (better):

echo "fs.inotify.max_user_watches=524288" > /etc/sysctl.d/12_inotify.conf
echo "fs.file-max=500000" > /etc/sysctl.d/12_inotify.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment