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 a03e44e commit 28973ccCopy full SHA for 28973cc
ios/Fabric/RNCPagerViewComponentView.mm
@@ -192,6 +192,10 @@ - (void)enableSwipe {
192
- (void)goTo:(NSInteger)index animated:(BOOL)animated {
193
NSInteger numberOfPages = _nativeChildrenViewControllers.count;
194
195
+ if (index == _currentIndex) {
196
+ return;
197
+ }
198
+
199
[self disableSwipe];
200
201
_destinationIndex = index;
ios/ReactNativePageView.m
@@ -243,6 +243,10 @@ - (void)enableSwipe {
243
244
NSInteger numberOfPages = self.reactSubviews.count;
245
246
247
248
249
250
251
252
0 commit comments