Clear Caching on React native Application and some useful command

Updated 6 March 2021


This is the most important things to clear the cache of React Native Application because of if we add some library to our project then running react native project there are many issues occurs.

In react-native development, there are multiple caches used when the app is built:

  1. React-native packager cache
  2. Emulator cache
  3. Java side cache (.gradle) folder (only in android)
  4. npm cache (if relevant?)  and many other caches.

How to remove cache? 

Run the following command to remove your cache from React Native Application. before running following command, we will require to install the Watchman in our system. how we install watchman. please look once our previous setup React Native blog.

Remove bundle in the Android platform-

Run the following command to clear bundle, generate new bundle. and then run the React Native Application in your Android device or Emulator.

this command is important when we changing something on our code that is not reflected on our Application (bellow API level 21 devices). if we run above command it generates new bundle every time and code is reflected on our Application.




. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home