New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-debugger-open

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-debugger-open

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

0.4.3
latest
Source
npm
Version published
Weekly downloads
8.6K
5.18%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 23 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts