Skip to content

Commit 323470e

Browse files
fix(ios): disable pager scroll gesture on swipe to go back (#500)
* fix: disable pager scroll gesture on swipe to go back * fix: navigation controller nil
1 parent e6bfa2d commit 323470e

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
@@ -89,6 +89,10 @@ - (void)didMoveToWindow {
8989
[self embed];
9090
[self setupInitialController];
9191
}
92+
93+
if (self.reactViewController.navigationController != nil && self.reactViewController.navigationController.interactivePopGestureRecognizer != nil) {
94+
[self.scrollView.panGestureRecognizer requireGestureRecognizerToFail:self.reactViewController.navigationController.interactivePopGestureRecognizer];
95+
}
9296
}
9397

9498
- (void)embed {

0 commit comments

Comments
 (0)