mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
feat[devtools]: display native tag for host components for Native (#32762)
Native only. Displays the native tag for Native Host components inside a badge, when user inspects the component. Only displaying will be supported for now, because in order to get native tags indexable, they should be part of the bridge operations, which is technically a breaking change that requires significantly more time investment. The text will only be shown when user hovers over the badge. 
This commit is contained in:
@@ -239,6 +239,7 @@ export function convertInspectedElementBackendToFrontend(
|
||||
key,
|
||||
errors,
|
||||
warnings,
|
||||
nativeTag,
|
||||
} = inspectedElementBackend;
|
||||
|
||||
const inspectedElement: InspectedElementFrontend = {
|
||||
@@ -273,6 +274,7 @@ export function convertInspectedElementBackendToFrontend(
|
||||
state: hydrateHelper(state),
|
||||
errors,
|
||||
warnings,
|
||||
nativeTag,
|
||||
};
|
||||
|
||||
return inspectedElement;
|
||||
|
||||
Reference in New Issue
Block a user