Return closestInstance in getInspectorDataForViewAtPoint (#25118)

This commit is contained in:
Tianyu Yao
2022-08-24 11:26:08 -07:00
committed by GitHub
parent 181525338e
commit 3f70e68cea
2 changed files with 2 additions and 0 deletions
@@ -217,6 +217,7 @@ if (__DEV__) {
pointerY: locationY,
frame: {left: pageX, top: pageY, width, height},
touchedViewTag: nativeViewTag,
closestInstance,
});
},
);
@@ -150,6 +150,7 @@ export type InspectorData = $ReadOnly<{|
export type TouchedViewDataAtPoint = $ReadOnly<{|
pointerY: number,
touchedViewTag?: number,
closestInstance?: Object,
frame: $ReadOnly<{|
top: number,
left: number,