Skip to content

Instantly share code, notes, and snippets.

@prescindivel
Created March 1, 2020 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prescindivel/98c01fa43c038400c97c89b668320eb7 to your computer and use it in GitHub Desktop.
Save prescindivel/98c01fa43c038400c97c89b668320eb7 to your computer and use it in GitHub Desktop.
#!/bin/sh
BLUE='\033[0;34m'
NC='\033[0m'
TMPDIR=/tmp
echo "${BLUE}==>1. Remove Watchman cache ${NC}"
watchman watch-del-all
echo "${BLUE}==>2. Remove cache and node_module${NC}"
rm -rf $TMPDIR/react-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&
rm -rf $TMPDIR/haste-map-* &&
rm -rf node_modules/ &&
yarn cache clean
echo "${BLUE}==>3. Re-install libraries${NC}"
yarn install &&
react-native link
echo "${BLUE} Reset successful!${NC}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment