Skip to content

Instantly share code, notes, and snippets.

View RidaRidss's full-sized avatar
🎯
Focusing

Rida Sarwar RidaRidss

🎯
Focusing
View GitHub Profile
@RidaRidss
RidaRidss / React Native Development On Ubuntu.md
Last active August 9, 2023 22:29
# Complete Steps Of React Native Development From Scratch for Ubuntu

Complete Steps Of React Native Development From Scratch for Ubuntu

step 1: Node.js

install node.js using ubuntu terminal 

     1. Configure Repo first :

          sudo apt-get install -y build-essential

Visual Studio code

1. Download Visual Studio Code for ubuntu

        code_1.17.0-1507160143_amd64.deb

            double tap , open and install

2. Install VS Code Extensions

install node.js using ubuntu terminal

 1. Configure Repo first :

      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

2. Install :

sudo apt-get install -y nodejs

install Yarn via Debian package repository on Ubuntu

 1. first configure repo for installation yarn

      curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

 2. install yarn

sudo apt-get update && sudo apt-get install yarn

    1. configure jdk using terminal :

            sudo apt-get install openjdk-8-jdk

     2. Cache to install from ubuntu system , if you have configure earlier

            apt-cache search jdk

    3.  Run
1. download android studio via site

 2. copy android studio from download directory to the path usr using terminal  in ubuntu (while we are using the permission mode to copy in usr directory bu adding -R in this command )

     sudo cp -R android-studio /usr/ 

 3. Go to the path in android studio bin folder

     cd /usr/android-studio/bin/

install git using terminal in ubuntu

sudo apt-get install git

  1. Go to the Root path in ubuntu terminal 

       cd ~

  2. Configure Repo to download watchman

       git clone https://github.com/facebook/watchman.git

  3. redirect path watchman directory

` echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && watchman shutdown-server

If You got an error any time while starting the server ERROR A non-recoverable condition has triggered. Watchman needs your help!" , use the below process , Run below 3 commands

echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
watchman shutdown-server


            OR