In this post, I am setting up React Native in Ubuntu 18.04. Before we begin, we need to check if we have all the prerequisites. Once all prerequisites are installed, we will proceed with setting up a React Native project. Finally running the app in Expo app in iOS and Android.
Java Development Kit (JDK)
Check your JDK version to see if you currently have JDK installed. In my screenshot, I do not have JDK installed.
# Check if you have JDK installed
# Run the below command to install JDK
sudo apt install openjdk-8-jdk-headless
Check your python version to see if you had python installed.
# Check your python version
# Run the below command to install python
sudo apt install python
Node.js and npm
Check your Node.js and npm version to see if you had it installed.