When trying to debug React Native within the web browser, I am unable to see any Component names. Whether via standard browser DevTools or the React (Component) browser extension, I do not see any reference to the Component names or even the classNames.
Component names are obfuscated by View
, Anonymous
, Screen
, etc in the React extension. Part of that how the code is written using React Native's defaultView
and Screen
components. But I would expect to see the child components nested eventually.
CSS classes are in css-xyz123
format, seemingly unrelated to their actual Component and class names.
Anyone know why this is occurring or how to get the Component names visible for web debugging? I considered a few causes:
- How the components are written (functional components, often wrapped with Mobx observers)
- Babel compiler settings
- Other minifiction or React Native build settings
Thank you!