Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clean react native project

How to clean react native project?

Is there any way to clean react native project as we can clean xcode project?

Any help will be appreciated!

like image 731
Jagdeep Singh Avatar asked Dec 29 '17 07:12

Jagdeep Singh


People also ask

What does NPX react native Clean project do?

React Native Clean ProjectCleans your React Native project by purging caches and modules, and reinstalling them again.

How clean Gradlew react native IOS?

To clean cache in react native, open terminal, go to your project android folder, and run gradlew clean command it will clear react native cache.


1 Answers

A react-native Project is about one XCode Project and one Android Project. (for pure js code, there's no need to do clean)

So, what you need would be

Clean XCode Project with

cd ios xcodebuild clean 

And then clean Android Project with

cd android ./gradlew clean 

You can simply write a batch file for it.

like image 157
Val Avatar answered Nov 24 '22 06:11

Val