0.1.2 • Published 7 years ago

react-native-port-watchdog v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

React Native Port Watchdog

Keeps port used by React Native packager revesed for Android devices listed in the config

Screenshot

Prerequisites

adb in your PATH

Usage

  1. Install modules yarn add react-native-port-watchdog npm-run-all
  2. 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