mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove optionality of intersectionRect
Summary: Changelog: [General][Changed] - Mark `intersectionRect` required in `NativeIntersectionObserverEntry` to reflect native logic. Reviewed By: rubennorte Differential Revision: D67868219 fbshipit-source-id: cdc15908c0cf687b13d1424a59ee1e2383811ab3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3744349ed7
commit
8681fc2ab2
+1
-1
@@ -45,7 +45,7 @@ using NativeIntersectionObserverEntry =
|
||||
// rootRect
|
||||
RectAsTuple,
|
||||
// intersectionRect
|
||||
std::optional<RectAsTuple>,
|
||||
RectAsTuple,
|
||||
// isIntersectingAboveThresholds
|
||||
bool,
|
||||
// time
|
||||
|
||||
Vendored
+1
-2
@@ -17,8 +17,7 @@ export type NativeIntersectionObserverEntry = {
|
||||
targetInstanceHandle: mixed,
|
||||
targetRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
|
||||
rootRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
|
||||
// TODO(T209328432) - Remove optionality of intersectionRect when native changes are released
|
||||
intersectionRect: ?$ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
|
||||
intersectionRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
|
||||
isIntersectingAboveThresholds: boolean,
|
||||
time: number,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user