Revert D67868219 (#48512)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48512

This diff reverts D67868219
Breaking OTA Compatibility Check https://fburl.com/onedetection/m0hqsvjp

[General][Changed] - Revert: Mark intersectionRect required in NativeIntersectionObserverEntry to reflect native logic.

Reviewed By: lunaleaps

Differential Revision: D67882016

fbshipit-source-id: 8cff299ee823f8ef06fe96667e832b68be45666d
This commit is contained in:
generatedunixname89002005232357
2025-01-06 22:28:51 -08:00
committed by Facebook GitHub Bot
parent 65c6a0a941
commit cd40e4e387
2 changed files with 3 additions and 2 deletions
@@ -45,7 +45,7 @@ using NativeIntersectionObserverEntry =
// rootRect
RectAsTuple,
// intersectionRect
RectAsTuple,
std::optional<RectAsTuple>,
// isIntersectingAboveThresholds
bool,
// time
@@ -17,7 +17,8 @@ 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
intersectionRect: $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
isIntersectingAboveThresholds: boolean,
time: number,
};