react-native-port-watchdog
v0.1.2
Published
Keeps port used by React Native packager revesed for devices listed in the config
Downloads
4
Readme
React Native Port Watchdog
Keeps port used by React Native packager revesed for Android devices listed in the config
Prerequisites
adb
in your PATH
Usage
- Install modules
yarn add react-native-port-watchdog npm-run-all
- Make your "scripts" section in package.json look something like this:
{
"scripts": {
"start": "run-p start-packager watch-port",
"start-packager": "react-native start",
"watch-port": "react-native-port-watchdog",
}
}
Now run yarn start
Consider adding .rnpwdrc.json
line to your .gitignore
Advanced Configuration
Set "device.adbDeviceId" from adb devices
in .rnpwdrc.json file to associate reverse with specific device
TODO
- Think of an easier way to associate reverse with specific device