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 2566192 commit dfa4536Copy full SHA for dfa4536
ios/ReactNativePageView.m
@@ -256,7 +256,8 @@ - (void)goTo:(NSInteger)index animated:(BOOL)animated {
256
257
if (!isForward && diff > 0) {
258
for (NSInteger i=_currentIndex; i>=index; i--) {
259
- if (index == _currentIndex || i == numberOfPages) {
+ // Prevent removal of one or many pages at a time
260
+ if (index == _currentIndex || i >= numberOfPages) {
261
continue;
262
}
263
[self goToViewController:i direction:direction animated:animated shouldCallOnPageSelected: i == index];
0 commit comments