A framework for building native applications using React
Improve ReactDevToolsOverlay usability (#55387)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55387 The components selector on desktop has a couple of issues: - Closest public handle is very frequently null (no matching component in the React tree) meaning that nothing gets selected. Ideally we should select the closest parent. - After any selection is made, the inspector is turned off. This combined with the above problem causes the inspector to look like it fails in the vast majority of cases. For now, let's disable the behavior of toggling off the inspector when something is selected, and instead require the user to manually disable the component selector. This also changes the behavior of the overlay for all other platforms. I do think this is better UX (I've had similar issues to this on mobile.) Ultimately we should improve the component selector to be as good as the one in Inspector.js, but this seems like a good stop-gap for now. Changelog: [Internal] Reviewed By: yannickl, shwanton Differential Revision: D91913370 fbshipit-source-id: c676c4be78eebea54003a40d7cc23876f7a6b67e
D
Devan Buggay committed
dd56bb0c44939f0e47080bde7a40b4ea4593b806
Parent: 7ff4c21
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 2/3/2026, 7:07:32 AM