From 128fd6d6b7373e111889cb85de2c0a8e444eebff Mon Sep 17 00:00:00 2001 From: Gregory Moskaliuk Date: Tue, 20 Oct 2026 23:18:05 +0200 Subject: [PATCH] Pass the clip rect through iOS views that don't clip subviews When a ScrollView updates clipped subviews, every view on the way down converts the clip rect into its own coordinates and passes it on, although only views with removeClippedSubviews use it, and those convert it from the view it is relative to themselves. Views that don't clip now pass the rect on unchanged, still relative to the same view, so a clipping view converts it once instead of once per level. Co-Authored-By: Claude Opus 5.5 --- .../React/Fabric/Mounting/UIView+ComponentViewProtocol.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/react-native/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm b/packages/react-native/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm index 36e5f64f4b19..9bb6a6dce159 100644 --- a/packages/react-native/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +++ b/packages/react-native/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm @@ -163,13 +163,12 @@ - (void)setPropKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN:(nullable NSSet