Provides simple scripts helping with React Native development
- 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
- (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 on ADB Devices
- You have to change Bundle Location for App to connect
- On Android
- Open Dev Menu (opened via Script in this Scenario)
- Click "Change Bundle Location"
- Insert
localhost:[PORT](where[PORT]is replaced with used Port, eg:8800) - Click "OK"
- On iOS
- Open Dev Menu (shaking the Device)
- Click "Configure Bundler"
- Insert Machine's IP (which might be obtained running
ipconfig getifaddr en0in Terminal; eg:192.168.0.125) in first Field - Insert used Port (eg:
8800) in second Field - Click "Apply Changes"
- On Android
- You have to change Bundle Location for App to connect
- Starts Metro on provided Port