react icon indicating copy to clipboard operation
react copied to clipboard

Bug: DevTools 6.0.0 element inspector not working with React Native 0.75

Open tsdevshop opened this issue 1 year ago • 1 comments

React version: 18.3.1

React Native version: 0.75.3

Steps To Reproduce

  1. Create a new 'frameworkless' React Native app, by following these instructions. Alternatively, clone this repo, which is the result of scaffolding a new RN project.
  2. Run npm install and cd ios; bundle exec pod install to install dependencies.
  3. Run npm start in one terminal to start the Metro bundler, and npm run ios in another to build and run the app on a simulator.
  4. Run npx [email protected].
  5. In the simulator, reload the app and toggle the Element Inspector.
  6. Tap on an element in the app to inspect it.

Link to code example: https://github.com/tsdevshop/react-native-devtools-test

The current behavior

  • The element is not selected in the DevTools pane

The expected behavior

  • The element should be selected.

Note that running npx [email protected] results in the correct behavior.

Screencasts

https://github.com/user-attachments/assets/89cb0446-fbbe-4b74-b989-c07a86bc4262

https://github.com/user-attachments/assets/4517c28a-c9b2-4b58-80c4-e6b3ff17a181

tsdevshop avatar Oct 02 '24 13:10 tsdevshop

I can confirm for React Native 0.73.6.

hcbylmz avatar Oct 03 '24 19:10 hcbylmz

DevTools 6.3.1 element inspector not working with React Native 0.73 too

xiangjiu0918 avatar Nov 22 '24 08:11 xiangjiu0918

Same here with react native 0.75.3 and devtools 5.3.1 and 6.0.1

guidoholz avatar Jan 13 '25 10:01 guidoholz

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar Jun 22 '25 08:06 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

github-actions[bot] avatar Jun 29 '25 09:06 github-actions[bot]