react native clear cache code example

Example 1: react native clear cach

watchman watch-del-all && 
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* && 
rm -rf node_modules/ 
&& npm cache clean --force &&
npm install && 
npm start -- --reset-cache

Example 2: npm start reset cache

npm start -- --reset-cache

Example 3: watchman watch-del-all, and react-native start --reset-cache

watchman watch-del-all, and react-native start --reset-cache

Example 4: how to clean react native project

cd android
gradlew clean

Example 5: yarn start --reset-cache

watchman watch-del-all && rm -f yarn.lock && rm -rf node_modules && yarn && yarn start --reset-cache