
Sudo make install Install React Native CLI Git checkout v4.9.0 # the latest stable release It is essential where we need Live reloading of apps when code changes. Press Ctrl + O (Write out)Īnd press Ctrl + x (exit) Install WatchmanĪ Watchman is a tool used to watch files and record when they change. Paste the copied code on the terminal screen and save the file using the below commands. bash_profile inside the home directory with the below command. The React Native tools require some environment variables to be set up in order to build apps with native code.įirst copy the lines, export ANDROID_HOME=$HOME/Android/SdkĮxport PATH=$PATH:$ANDROID_HOME/platform-tools

Setting up Android SDKĪndroid Studio installs the latest Android SDK by default. We can easily download it from the official website that I have given below. Sudo apt-get install openjdk-8-jdk Install Android StudioĪndroid studio needs to be installed for working with React Native development. sudo add-apt-repository ppa:openjdk-r/ppa To install the JDK using the commands below.

Actually, when building an app using React Native, it converts the JSX code to Java. So Java Development Kit(JDK) is required to work with React Native projects. Native Android apps are built using Java. However, we can install the latest version for NPM using the command below. NPM will be installed with the Nodejs installation itself. Sudo apt-get install -y nodejs Install NPM So curl the latest Node.js package and install the stable version of Node.js on our system using the below commands. Since React Native is a framework of JavaScript, it requires to have Nodejs(A JavaScript runtime) installed. Running the application on an Android device.Choosing the code editor and start editing our app.Creating a new React Native application.Configure ANDROID_HOME environment variable.

Here in this article, we will learn the following things:.
