Sagipora Sopore Baramulla 193201 Jammu & Kashmir
To start with, we need to install Termux on our Android device. You can download it from here. Don’t install termux from Google play store because it’s no longer maintained.
Once you have downloaded the APK file, install it on your device.
Termux is a powerful terminal emulation app that can be used to run various Unix/Linux commands on Android devices. It provides a full-fledged Linux environment on your Android device and can be used for various purposes, including programming, development, and hacking.
After installing Termux, we need to give it storage access to be able to download and install packages. You can do this by running the following command:
When prompted for permission, click on “Allow” to give Termux storage access. This will allow Termux to access the storage on your device and install packages without any issues.
Next, we need to update and upgrade the packages in Termux. This can be done by running the following command:
apt update -y && apt upgrade -y
This will update and upgrade all the packages in Termux. It is important to keep the packages updated to ensure that we have the latest features and bug fixes.
To install React Native, we need to have Node.js installed on our system. You can install it by running the following command:
apt install nodejs
Once the installation is complete, you can check if it is successfully installed by running the following command:
This should display the version of Node.js that you have installed. If it displays the version number, then Node.js has been successfully installed on your system.
Now, we can install React Native on our Android device using Termux. To do this, we need to install it in the Termux home directory, or it will fail to install. To go to the home directory, run the following command:
Once you are in the home directory, you can create a new React Native app by running the following command:
npx create-expo-app appName
Replace “appName” with the name that you want to give to your app. After it is successfully installed, change the directory to the app location using the following command:
To start the app, run the following command:
This will start the development server for your React Native app. You can now live preview the app using the Expo Go app, which you can easily install from the Play Store. You can also edit the source code using Acode code editor, which you can install from here.