Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Not working with react-native #708

Closed
laclance opened this issue May 11, 2017 · 7 comments
Closed

Not working with react-native #708

laclance opened this issue May 11, 2017 · 7 comments

Comments

@laclance
Copy link

laclance commented May 11, 2017

The image shows how far i can get. screen shot 2017-05-11 at 10 35 27 am

Nothing happens when clicking on the View in the inspector nor on the children objects in the developer tools. When using the inspector in the simulator i can highlight elements but no details show up.
When using the chrome developer tools the react-devtools windows stays on Connecting to React…
Also tried the react-devtools chrome extension which keeps saying This page doesn’t appear to be using React.
Also tried the stand alone react native debugger but inspector does not show up. I remember at at one stage the inspector in the react native debugger was working. i didn't really need it at the time but now i really need to inspect elements style. Any help would be appreciated.

EDIT

Also maybe related: after reloading the app i always get the error: Expected to run on UI thread, which i only started getting after the last update.

"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
Mac OSX Sierra,
Android API 25

@jhen0409
Copy link
Contributor

I've try to fix it with facebook/react-native#13116 but still not landed, the bug is from requestIdleCallback in remote debug mode, it usually on Android device.

Also tried the stand alone react native debugger but inspector does not show up. I remember at at one stage the inspector in the react native debugger was working. i didn't really need it at the time but now i really need to inspect elements style. Any help would be appreciated.

Actually I've wrote a temporary workaround in troubleshooting.md of react-native-debugger, let it fallback to the custom polyfill.

@laclance
Copy link
Author

laclance commented May 11, 2017

Thank you very much but I tried the work around and still nothing. Ive tried with simulator and real device. Also maybe related: after reloading the app i always get the error: Expected to run on UI thread, which i only started getting after the last update.

@gaearon
Copy link
Contributor

gaearon commented May 26, 2017

the bug is from requestIdleCallback in remote debug mode

Can we just disable using rIC on our side if the polyfill is bad? I'd be open to taking a PR that checks for a native implementation using function toString before using it.

@jhen0409
Copy link
Contributor

I'd be open to taking a PR that checks for a native implementation using function toString before using it.

That will help more people get rid of this problem!

@gaearon
Copy link
Contributor

gaearon commented May 27, 2017

Sounds like a plan. Want to do it?

@jhen0409
Copy link
Contributor

@gaearon I submitted #749 for fixing this. :)

@bvaughn
Copy link
Contributor

bvaughn commented Aug 19, 2019

React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react).

Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools

@bvaughn bvaughn closed this as completed Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants