From 5cee1fffacc8f8994fc24fe57bf7d1d86568ada6 Mon Sep 17 00:00:00 2001 From: paulo reis Date: Tue, 2 Dec 2025 16:51:18 -0300 Subject: [PATCH] fix: remove hardcoded recycle --- ios/RNCPagerViewComponentView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RNCPagerViewComponentView.mm b/ios/RNCPagerViewComponentView.mm index d52f5326..cc0a1fa8 100644 --- a/ios/RNCPagerViewComponentView.mm +++ b/ios/RNCPagerViewComponentView.mm @@ -130,7 +130,6 @@ -(void)prepareForRecycle { [super prepareForRecycle]; _nativePageViewController = nil; _currentIndex = -1; - _scrollEnabled = YES; } - (void)shouldDismissKeyboard:(RNCViewPagerKeyboardDismissMode)dismissKeyboard { @@ -161,6 +160,8 @@ - (void)updateProps:(const facebook::react::Props::Shared &)props oldProps:(cons if (_currentIndex == -1) { _currentIndex = newScreenProps.initialPage; [self shouldDismissKeyboard: newScreenProps.keyboardDismissMode]; + _scrollEnabled = newScreenProps.scrollEnabled; + [self applyScrollEnabled]; } const auto newLayoutDirectionStr = RCTNSStringFromString(toString(newScreenProps.layoutDirection));