mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add getInspectorDataForViewAtPoint (take two) (#18388)
* Add getInspectorDataForViewAtPoint (take two) * Updates from review * Add DEV to dev-only variable * Missed this rename
This commit is contained in:
@@ -351,5 +351,6 @@
|
||||
"350": "Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.",
|
||||
"351": "Unsupported type.",
|
||||
"352": "React Blocks (and Lazy Components) are expected to be replaced by a compiler on the server. Try configuring your compiler set up and avoid using React.lazy inside of Blocks.",
|
||||
"353": "A server block should never encode any other slots. This is a bug in React."
|
||||
"353": "A server block should never encode any other slots. This is a bug in React.",
|
||||
"354": "getInspectorDataForViewAtPoint() is not available in production."
|
||||
}
|
||||
|
||||
+18
@@ -18,6 +18,7 @@ import type {
|
||||
} from 'react-native-renderer/src/ReactNativeTypes';
|
||||
import type {RNTopLevelEventType} from 'legacy-events/TopLevelEventTypes';
|
||||
import type {CapturedError} from 'react-reconciler/src/ReactCapturedValue';
|
||||
import type {Fiber} from 'react-reconciler/src/ReactFiber';
|
||||
|
||||
type DeepDifferOptions = {|+unsafelyIgnoreFunctions?: boolean|};
|
||||
|
||||
@@ -96,6 +97,17 @@ declare module 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'
|
||||
) => Promise<any>,
|
||||
setJSResponder: (reactTag: number, blockNativeResponder: boolean) => void,
|
||||
clearJSResponder: () => void,
|
||||
findSubviewIn: (
|
||||
reactTag: ?number,
|
||||
point: Array<number>,
|
||||
callback: (
|
||||
nativeViewTag: number,
|
||||
left: number,
|
||||
top: number,
|
||||
width: number,
|
||||
height: number,
|
||||
) => void,
|
||||
) => void,
|
||||
...
|
||||
};
|
||||
declare export var BatchedBridge: {
|
||||
@@ -156,6 +168,12 @@ declare var nativeFabricUIManager: {
|
||||
onFail: () => void,
|
||||
onSuccess: MeasureLayoutOnSuccessCallback,
|
||||
) => void,
|
||||
findNodeAtPoint: (
|
||||
node: Node,
|
||||
locationX: number,
|
||||
locationY: number,
|
||||
callback: (Fiber) => void,
|
||||
) => void,
|
||||
...
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user