Skip to content

Commit

Permalink
Return closestInstance in getInspectorDataForViewAtPoint (#25118)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyao1 authored Aug 24, 2022
1 parent 1815253 commit 3f70e68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ if (__DEV__) {
pointerY: locationY,
frame: {left: pageX, top: pageY, width, height},
touchedViewTag: nativeViewTag,
closestInstance,
});
},
);
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-renderer/src/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export type InspectorData = $ReadOnly<{|
export type TouchedViewDataAtPoint = $ReadOnly<{|
pointerY: number,
touchedViewTag?: number,
closestInstance?: Object,
frame: $ReadOnly<{|
top: number,
left: number,
Expand Down

0 comments on commit 3f70e68

Please sign in to comment.