Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jun 2, 2016
1 parent ad64649 commit f34e69e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ $ brew update && brew cask install react-native-debugger

Make sure all `http://localhost:8081/debugger-ui` pages is closed, open the app to wait state, and reload JS with your simulator/device.

Also, you can use [react-native-debugger-patch](https://github.com/jhen0409/react-native-debugger/blob/master/patch), it will replace `open debugger-ui with Chrome` to `open React Native Debugger` from react-native packager.

## Debugger

This is reference to [react-native](https://github.com/facebook/react-native/blob/master/local-cli/server/util/) debugger-ui.
Expand Down
17 changes: 13 additions & 4 deletions patch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ $ npm i --save-dev react-native-debugger-patch

## Usage

```bash
$ rndebugger-patch
Add command to your project's package.json:

```
"scripts": {
"postinstall": "rndebugger-patch"
}
```

# If you want to revert injection
$ rndebugger-patch --revert
It will be run after `npm install`. (You can run `npm run postinstall` first)

If you want to revert injection, just run:

```bash
$ $(npm bin)/rndebugger-patch --revert
```

You can also use following command instead of this patch:
Expand Down

0 comments on commit f34e69e

Please sign in to comment.