command branding logo

React Native

React Native is an open-source UI software framework created by Facebook, Inc. It is used to develop applications for Android, Android TV, iOS, macOS, tvOS, Web, Windows and UWP by enabling developers to use the React framework along with native platform capabilities.

React Native Commands List

Command Name
Command
Command Description
Install The React Native Cli using NPM
npm install -g react-native-cli
Installs the react native cli globally, used to run the mobile environment and dev tools using npm
Install The React Native Cli using Yarn
yarn add -g react-native-cli
Installs the react native cli globally, used to run the mobile environment and dev tools using yarn
Create React Native App
react-native init myApp
Using React Native CLI, create a new react native project
Run Default Ios Emulator
react-native run-ios
Runs The emulator on MacOS for Mac, "must have emulator installed via X-code"
Run Default Android Emulator
react-native run-android
Runs The emulator on Android Studio For Windows, "Must have Android Studio Installed and a mobile downloaded"
Clean Android Project
cd android &&./gradlew clean && cd ../
From The Root Of Your project run this commands to remove build files and clean the android project
Clean IOS Project
cd ios && xcodebuild clean && cd ../
From The Root Of Your project run this commands to remove build files and clean the IOS project
Run A Android Release Version Of Your App
npx react-native run-android --variant=release
From The Root Of Your project run this commands to remove build files and clean the IOS project
Run A Android APK Release Version Of Your App
cd android && ./gradlew assembleRelease && cd ../
From The Root Of Your project run this commands to create build APK Files. found in android/app/build/outputs/apk
Run A Android ABB Release Version Of Your App
cd android && ./gradlew bundleRelease && cd ../
From The Root Of Your project run this commands to create build ABB Files. found in android/app/build/outputs/bundle/release/app-release.aab
Get Android Signing Report - Contains SHA Keys
./gradlew signingReport
Log To The Console Android Apps Signing Report - Contains A Bunch Of SHA Keys, validity
Run App
yarn start
Starts the Native App