We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bdda8 commit b7a0764Copy full SHA for b7a0764
1 file changed
ios/RNCPagerViewComponentView.mm
@@ -130,7 +130,6 @@ -(void)prepareForRecycle {
130
[super prepareForRecycle];
131
_nativePageViewController = nil;
132
_currentIndex = -1;
133
- _scrollEnabled = YES;
134
}
135
136
- (void)shouldDismissKeyboard:(RNCViewPagerKeyboardDismissMode)dismissKeyboard {
@@ -161,6 +160,8 @@ - (void)updateProps:(const facebook::react::Props::Shared &)props oldProps:(cons
161
160
if (_currentIndex == -1) {
162
_currentIndex = newScreenProps.initialPage;
163
[self shouldDismissKeyboard: newScreenProps.keyboardDismissMode];
+ _scrollEnabled = newScreenProps.scrollEnabled;
164
+ [self applyScrollEnabled];
165
166
167
const auto newLayoutDirectionStr = RCTNSStringFromString(toString(newScreenProps.layoutDirection));
0 commit comments