Skip to content

Commit

Permalink
fix(iOS): remove current index check (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski authored Sep 12, 2023
1 parent ecb77e6 commit 0a4f2ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ios/Fabric/RNCPagerViewComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ - (void)enableSwipe {
- (void)goTo:(NSInteger)index animated:(BOOL)animated {
NSInteger numberOfPages = _nativeChildrenViewControllers.count;

if (index == _currentIndex) {
return;
}

[self disableSwipe];

_destinationIndex = index;
Expand Down

0 comments on commit 0a4f2ba

Please sign in to comment.