Skip to content

Instantly share code, notes, and snippets.

@itinance
Last active July 13, 2024 21:08
Show Gist options
  • Save itinance/9e59cef51567471a243909bed3110aa8 to your computer and use it in GitHub Desktop.
Save itinance/9e59cef51567471a243909bed3110aa8 to your computer and use it in GitHub Desktop.
React Native: package.json: usefully tools for React Native that can be used with "npm run $name"
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --reset-cache",
"reset": "rm -rf node_modules/ && npm cache clear && watchman watch-del-all && npm i",
"testflight": "fastlane beta",
"android-device": "adb reverse tcp:8081 tcp:8081 && react-native run-android",
"lint": "jslint **.js",
"test": "jest",
"generate-apk": "cd android && ./gradlew assembleRelease && open ./app/build/outputs/apk/",
"install-apk": "cd android && ./gradlew installRelease"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment