diff --git a/packages/react-native/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h b/packages/react-native/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h index d0653998093bc8..dcc2a6c3fd60f5 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h +++ b/packages/react-native/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h @@ -45,7 +45,7 @@ using NativeIntersectionObserverEntry = // rootRect RectAsTuple, // intersectionRect - RectAsTuple, + std::optional, // isIntersectingAboveThresholds bool, // time diff --git a/packages/react-native/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js b/packages/react-native/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js index 7ceba03d7d2a67..e2d9a32efde752 100644 --- a/packages/react-native/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +++ b/packages/react-native/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js @@ -17,7 +17,8 @@ export type NativeIntersectionObserverEntry = { targetInstanceHandle: mixed, targetRect: $ReadOnlyArray, // It's actually a tuple with x, y, width and height rootRect: $ReadOnlyArray, // It's actually a tuple with x, y, width and height - intersectionRect: $ReadOnlyArray, // It's actually a tuple with x, y, width and height + // TODO(T209328432) - Remove optionality of intersectionRect when native changes are released + intersectionRect: ?$ReadOnlyArray, // It's actually a tuple with x, y, width and height isIntersectingAboveThresholds: boolean, time: number, };