Skip to content

Commit

Permalink
fix(ios): pager sometimes does not fill full height (#565)
Browse files Browse the repository at this point in the history
Fixes #523
Fixes #543

See #518 (comment) for more info.
  • Loading branch information
andreialecu authored May 20, 2022
1 parent 98e3b10 commit 61dd680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/ReactNativePageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ - (void)setReactViewControllers:(NSInteger)index

NSArray *currentVCs = self.reactPageViewController.viewControllers;
if (currentVCs.count == 1 && [currentVCs.firstObject isEqual:controller]) {
[self.reactPageViewController setViewControllers:@[controller]
direction:direction
animated:NO
completion:nil];
return;
}

Expand Down

0 comments on commit 61dd680

Please sign in to comment.