react-native-debugger: Inspector get stuck at "Connecting to React…"

I did adb reverse tcp:8097 tcp:8097 but it doesn’t help.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 15 (8 by maintainers)

Most upvoted comments

react-devtools-core@2.3.0 should fixed the problem, please update the package in your react-native project. (Note that it’s dependency of react-native)

@jhen0409 Thank you, for some reason adb reverse tcp:8097 tcp:8097 works for me now.

Android 6.0.1, RN 0.42.0, RN Debugger 0.6.2

I’ve tried:

  1. Set automatic date + time on my physical device.
  2. requestIdleCallback(() => alert('works!'), { timeout: 1 }) and requestIdleCallback(() => console.log('works!'), { timeout: 1 }), neither are called.
  3. Your workaround above using window object.
  4. Using the polyfill in an if (__DEV__) { ... } statement in my app’s entry point.

I still cannot connect to the React dev tools using a physical device (Waiting for React to connect…). I added a console.log() inside if (__DEV__) { ... } just to make sure I am running in a dev environment and it prints correctly. I’m unsure what else to try at this point.