Skip to content

Commit 92bf5cc

Browse files
authored
fix(ios): keyboard auto dismisses (#567)
Fixes #566
1 parent 57f9e72 commit 92bf5cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/ReactNativePageView.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,12 @@ - (void)setReactViewControllers:(NSInteger)index
185185

186186
NSArray *currentVCs = self.reactPageViewController.viewControllers;
187187
if (currentVCs.count == 1 && [currentVCs.firstObject isEqual:controller]) {
188+
// see:
189+
// 1) https://github.com/callstack/react-native-pager-view/pull/462
190+
// 2) https://github.com/callstack/react-native-pager-view/issues/566
188191
[self.reactPageViewController setViewControllers:@[controller]
189192
direction:direction
190-
animated:NO
193+
animated:YES
191194
completion:nil];
192195
return;
193196
}

0 commit comments

Comments
 (0)