

We can see the Developer options menu there. Continually click the option until it enables the Developer options
#Vs code download ubuntu 18.04 android#
Now we need to run the project on our Android phone(It is recommended to use Android 11.0 and higher devices, but lower versions are also compatible). (Go to View -> Integrated Terminal from VS code’s top menubar) Running the Application On an Android Device Because we can use the Terminal without going out of our code editor. cd AwesomeProjectįrom now on, we can use VS code Terminal instead of the native Ubuntu Terminal. Start EditingĪfter installing VS code, direct to the project folder and open the project using it. įrom the above link, we can download VS code. But in my case, I choose Visual studio Code(VS code). We can choose our own favorite code editor for editing the project. react-native init AwesomeProject Choosing the Code Editor Using react native CLI, we can create a new React Native project.
#Vs code download ubuntu 18.04 install#
sudo npm install -g react-native-cli Create a new application using React Native We can easily install react-native CLI using NPM.Įxecute the below commands to install React Native CLI. We need to install React Native Command Line Interface(CLI) for creating and dealing with React Native projects. 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

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:.
