react-native-port-patcher

1.0.5 • Public • Published

react-native-port-patcher

Attempts to resolve this issue: https://productpains.com/post/react-native/allow-packager-port-to-be-configurable-change-from-8081/

HowTo

Install it as a dev-dependency in your react-native project:

npm install -D react-native-port-patcher

Then update your package.json to include:

  "scripts": {
    "postinstall": "react-native-port-patcher --new-port 8088"
  }

Now after you yarn or npm install, the script will find your react-native package and @react-native-community projects under node_modules and regex search/replace all instances of /\b8081\b/g with the port you provide.

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-port-patcher

Weekly Downloads

617

Version

1.0.5

License

MIT

Unpacked Size

4.3 kB

Total Files

4

Last publish

Collaborators

  • ktonon