From 8804669caddbeeaf44bcd8bcbe04170cbe22a07d Mon Sep 17 00:00:00 2001 From: Johan Kasperi Date: Tue, 25 Nov 2025 15:18:56 +0100 Subject: [PATCH] fix(iOS): reset zoomscale to 1 in Fabric RCTScrollViewComponentView --- .../ComponentViews/ScrollView/RCTScrollViewComponentView.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm index 15a5ab7bce45..15e75f45632a 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm @@ -680,6 +680,8 @@ - (void)prepareForRecycle const auto &props = static_cast(*_props); _scrollView.contentOffset = RCTCGPointFromPoint(props.contentOffset); + // Reset zoom scale to default + _scrollView.zoomScale = 1.0; // We set the default behavior to "never" so that iOS // doesn't do weird things to UIScrollView insets automatically // and keeps it as an opt-in behavior.