Skip to content

Commit 61dd680

Browse files
authored
fix(ios): pager sometimes does not fill full height (#565)
Fixes #523 Fixes #543 See #518 (comment) for more info.
1 parent 98e3b10 commit 61dd680

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/ReactNativePageView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ - (void)setReactViewControllers:(NSInteger)index
185185

186186
NSArray *currentVCs = self.reactPageViewController.viewControllers;
187187
if (currentVCs.count == 1 && [currentVCs.firstObject isEqual:controller]) {
188+
[self.reactPageViewController setViewControllers:@[controller]
189+
direction:direction
190+
animated:NO
191+
completion:nil];
188192
return;
189193
}
190194

0 commit comments

Comments
 (0)