diff --git a/ios/RNCPagerView.m b/ios/RNCPagerView.m index 27103213..709a12ba 100644 --- a/ios/RNCPagerView.m +++ b/ios/RNCPagerView.m @@ -126,6 +126,10 @@ - (void)enableSwipe { } - (void)goTo:(NSInteger)index animated:(BOOL)animated { + if ([self getCurrentPage] == index) { + return; + } + CGPoint targetOffset = [self isHorizontal] ? CGPointMake(_scrollView.frame.size.width * index, 0) : CGPointMake(0, _scrollView.frame.size.height * index); if (animated) {