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));