To install React Native environment on Android, you need to follow the below steps:
-
Install Node.js: First, you need to install Node.js on your computer. You can download and install it from the official Node.js website.
-
Install NPM: You need to install NPM for managing packages on your computer. You can install NPM by running the following command:
$ npm install -g npm
-
Install JDK: Install the Java Development Kit (JDK) on your computer. You can download and install it from the official Oracle website.
-
Install Android Studio: Download and install Android Studio from the official website. Android Studio is the recommended IDE for building Android apps with React Native.
-
Configure Android Studio: Open Android Studio and configure it with Android SDK and other necessary components. You can do this by selecting the “SDK Manager” option in Android Studio.
-
Configure the Android emulator (Optional): You can use the Android emulator to test your React Native app on your computer. Configure the Android emulator by selecting the “AVD Manager” option in Android Studio.
-
Install React Native: Open a terminal in your computer and run the following command to install React Native CLI:
$ npm install -g react-native-cli
-
Download the source code: After installing the React Native CLI, you can pull the source code from Github repository by running the following command:
$ git clone https://github.com/dominant-strategies/quaipay.git
-
Run your app: Once you’ve created your app, you can run it on your Android emulator or a connected Android device by running the following command in your app directory:
$ react-native run-android
This will start your app on the Android emulator or the connected Android device.
To install React Native environment on iOS, you need to follow the below steps:
-
Install Xcode: Xcode is the recommended IDE for building iOS apps with React Native. You can download and install it from the App Store on your Mac.
-
Install Node.js: First, you need to install Node.js on your computer. You can download and install it from the official Node.js website.
-
Install NPM: You need to install NPM for managing packages on your computer. You can install NPM by running the following command:
$ npm install -g npm
-
Install Watchman: Watchman is a file watching service that is used by React Native development server to monitor code changes. You can install Watchman by running the following command in your terminal:
brew install watchman
-
Install React Native CLI: After installing Watchman, you need to install React Native CLI by running the following command in your terminal:
npm install -g react-native-cli
-
Download the source code: After installing the React Native CLI, you can pull the source code from Github repository by running the following command:
$ git clone https://github.com/dominant-strategies/quaipay.git
-
Run your app: Once you’ve created your app, you can run it in the iOS simulator by running the following command in your app directory:
react-native run-ios
This will start your app in the iOS simulator.