Skip to content

Commit 0eb8af7

Browse files
meatnordrinkleotmcortinico
authored
Note on connecting to React Native simulator. (#3214)
Co-authored-by: LeoTM <[email protected]> Co-authored-by: Nicola Corti <[email protected]>
1 parent 0aa09ac commit 0eb8af7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/debugging.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,15 @@ react-devtools
115115

116116
![React DevTools](/docs/assets/ReactDevTools.png)
117117

118-
It should connect to your simulator within a few seconds.
118+
It should connect to your simulator within a few seconds.
119119

120-
> Note: if you prefer to avoid global installations, you can add `react-devtools` as a project dependency. Add the `react-devtools` package to your project using `npm install --save-dev react-devtools`, then add `"react-devtools": "react-devtools"` to the `scripts` section in your `package.json`, and then run `npm run react-devtools` from your project folder to open the DevTools.
120+
:::info
121+
If connecting to the emulator proves troublesome (especially Android 12), try running `adb reverse tcp:8097 tcp:8097` in a new terminal.
122+
:::
123+
124+
:::info
125+
If you prefer to avoid global installations, you can add `react-devtools` as a project dependency. Add the `react-devtools` package to your project using `npm install --save-dev react-devtools`, then add `"react-devtools": "react-devtools"` to the `scripts` section in your `package.json`, and then run `npm run react-devtools` from your project folder to open the DevTools.
126+
:::
121127

122128
### Integration with React Native Inspector
123129

0 commit comments

Comments
 (0)