Skip to content

Instantly share code, notes, and snippets.

@ps0305
Created April 7, 2021 09:18
Show Gist options
  • Save ps0305/eddc2fa194800c675788e38d04ce53ab to your computer and use it in GitHub Desktop.
Save ps0305/eddc2fa194800c675788e38d04ce53ab to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -rf node_modules
rm -rf ios/Podfile.lock
rm -rf package.json.lock
npm install
npx jetify
npx patch-package
cd ios && pod install && cd ..
cd android && ./gradlew clean && cd ..
@ps0305
Copy link
Author

ps0305 commented Apr 8, 2021

Clean cache

rm -rf $TMPDIR/react-; rm -rf $TMPDIR/haste-; rm -rf $TMPDIR/metro-*; watchman watch-del-all

Start React-Native directly

npx react-native start --reset-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment