Hello Friends 👋,

Welcome To Infinitbility! ❤️

In this article, You already familiar with every command I have shared the article but the purpose article is to get all useful commands in a single article.

For Windows users, 🔖 bookmark this article then you do not need to write a command every time. ( windows cmd can’t ❌ save the history of commands )

Let’s start today topic “React Native commands you need almost every day”

Gradlew Clean

the gradlew clean commands use to clean the Gradle cache & delete temporary files.

gradlew clean

npm start || yarn start

the npm start or yarn start command used to run their own metro server for react native project.

  • npm users
npm start -- --reset-cache
  • yarn users
yarn start -- --reset-cache

Run project

Run cammands use for to launch your app on devices.

  • for android development
npx react-native run-android
  • for iOS development
npx react-native run-ios

Ya… Ya… No one can use run-ios command 😎 we are a xcoder 😁.

Install package

For adding packages on our project we are use below command.

  • npm users
npm install [email protected]

npm i 😏… ( why I born… what is the purpose of my life 😢 )

  • yarn users
yarn add [email protected]

React Native link command use to link your native dependencies.

npx react-native link

Release apk

For build apk file we use gradlew assembleRelease command.

gradlew assembleRelease

Custom Script

create your own scripts like below example.

"scripts": {
    "shake": "adb shell input keyevent 82",
    "run-a": "react-native run-android",
    "run-i": "react-native run-ios",
    "clean": "cd ./android && ./gradlew clean",
    "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug",
    "build:an": "cd android && gradlew assembleRelease"

Thanks for reading…

More From React Native Tutorial


1. Introduction To React Native

2. React Native Environment Setup using expo

3. React Native Environment Setup for windows

4. React Native Environment setup on Mac OS

5. React Native Environment setup on linux

6. React Native Project Structure

7. React Native State

8. React Native Props

9. React Native Styling

10. React Native Flexbox

11. React Native Text

12. React Native Textinput

13. React Native Commands

14. React Native ScrollView


1. React Native Dark Mode

2. React Native Fonts

3. React Native SQLite

4. React Native DatepickerAndroid

5. React native ScrollView scroll to position

6. How to align icon with text in react native

7. React Native Image

8. React Native Firebase Crashlytics

9. React Native Async Storage

10. React Native Share

Error & Issue Solution

1. Task :app:transformDexArchiveWithDexMergerForDebug FAILED In React Native

2. Expiring Daemon because JVM heap space is exhausted In React Native

3. Task :app:transformNativeLibsWithMergeJniLibsForDebug FAILED In React Native

4. Unable to determine the current character, it is not a string, number, array, or object in react native

5. App crashed immediately after install react native video or track player

6. how to delete SQLite database in android react native

7. React native material dropdown twice click issue

8. How to get the current route in react-navigation?

9. how to disable drawer on the drawer navigation screen?

10. Image not showing in ios 14 react native

11. React Native image picker launchimagelibrary on second time issue

12. how to open any link from react native render Html

13. Network request failed in react native fetch

14. React Native upload video example