GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — React Fabric: Support passing nativeViewTag to getInspectorDataForVie… · react/react@1b7e471

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-native-renderer/src
    • ReactNativeFiberInspector.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-native-renderer/src/ReactNativeFiberInspector.js‎

Copy file name to clipboardExpand all lines: packages/react-native-renderer/src/ReactNativeFiberInspector.js
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,22 @@ if (__DEV__) {
190190

191191
closestInstance =
192192
internalInstanceHandle.stateNode.canonical._internalInstanceHandle;
193+
194+
// Note: this is deprecated and we want to remove it ASAP. Keeping it here for React DevTools compatibility for now.
195+
const nativeViewTag =
196+
internalInstanceHandle.stateNode.canonical._nativeTag;
197+
193198
nativeFabricUIManager.measure(
194199
internalInstanceHandle.stateNode.node,
195200
(x, y, width, height, pageX, pageY) => {
201+
const inspectorData = getInspectorDataForInstance(
202+
closestInstance,
203+
);
196204
callback({
205+
...inspectorData,
197206
pointerY: locationY,
198207
frame: {left: pageX, top: pageY, width, height},
199-
...getInspectorDataForInstance(closestInstance),
208+
touchedViewTag: nativeViewTag,
200209
});
201210
},
202211
);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.