0.4.3 • Published 9 months ago

react-native-debugger-open v0.4.3

Weekly downloads
14,758
License
MIT
Repository
github
Last release
9 months ago

react-native-debugger-open NPM version

Replace open debugger-ui with Chrome to open React Native Debugger from react-native packager

macOS If you opened the app before (registered URI scheme), you can use this patch open the app automatically. Linux / Windows Currently it cannot open the app automatically, it just send set-debugger-loc request, so you need open the app yourself.

Screenshot

demo

Demo with initial project of Create React Native App (Expo)

Installation

First, install React Native Debugger.

In your React Native project:

$ npm i --save-dev react-native-debugger-open # or -g

Usage

Inject to react-native packager

Add command to your project's package.json:

"scripts": {
  "postinstall": "rndebugger-open"
}

It will be run after npm install. (You can run npm run postinstall first) The ./node_modules/react-native/local-cli/server/middleware/getDevToolsMiddleware.js code will be replaced.

Use REACT_DEBUGGER env of react-native packager

Instead of Inject to react-native packager, you can just do:

$ REACT_DEBUGGER="rndebugger-open --open --port 8081" npm start

# Windows
$ set REACT_DEBUGGER="rndebugger-open --open --port 8081" && npm start

If you're using Expo <= 48, use port 19000 instead of 8081.

Options (--option)

NameDescription
macosUse react-native-macos module name instead of react-native. Default is false
revertRevert rndebugger-open injection. Default is false
openRun open directly instead of inject patch
portSpecified react-native packager port with --open option. Default is 8081

You can also Launch by CLI or React Native packager instead of this package.

LICENSE

MIT

0.4.1

10 months ago

0.4.0

10 months ago

0.4.3

9 months ago

0.4.2

10 months ago

0.3.25

4 years ago

0.3.24

4 years ago

0.3.23

4 years ago

0.3.22

5 years ago

0.3.21

5 years ago

0.3.20

5 years ago

0.3.19

5 years ago

0.3.18

5 years ago

0.3.17

6 years ago

0.3.16

6 years ago

0.3.15

7 years ago

0.3.14

7 years ago

0.3.13

7 years ago

0.3.12

7 years ago

0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago