rn-helper-cli
v1.1.0
Published
Provides simple scripts helping with React Native development
Maintainers
Readme
rn-helper-cli
Provides simple scripts helping with React Native development
Setup
- Run
yarn add -D rn-helper-cli - Add needed Scripts to Project's package.json using following Format:
"[yoursScriptName]": "[libsScriptName]", eg:"startMetro": "startMetroWithCustomPort" - Use running
yarn [yoursScriptName] [args if required], eg:yarn startMetro 8800
Scripts
startMetroWithCustomPort [PORT]
- (Connects)[https://www.reddit.com/r/reactnative/comments/ryrntz/what_does_adb_reverse_tcp8081_tcp8081_command_do/] all found ADB Devices to provided Port
- Requests React Native Dev Menu (since you have to change Bundle Location to
localhost:${port}for App to connect) - Starts Metro on provided Port
