File tree Expand file tree Collapse file tree 4 files changed +41
-6
lines changed Expand file tree Collapse file tree 4 files changed +41
-6
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,7 @@ PODS:
13691369 - React-Core
13701370 - react-native-notifications (5.1.0):
13711371 - React-Core
1372- - react-native-pager-view (6.4.0 ):
1372+ - react-native-pager-view (6.7.1 ):
13731373 - DoubleConversion
13741374 - glog
13751375 - hermes-engine
@@ -2359,7 +2359,7 @@ SPEC CHECKSUMS:
23592359 react-native-keep-awake: ad1d67f617756b139536977a0bf06b27cec0714a
23602360 react-native-netinfo: 8a7fd3f7130ef4ad2fb4276d5c9f8d3f28d2df3d
23612361 react-native-notifications: 4601a5a8db4ced6ae7cfc43b44d35fe437ac50c4
2362- react-native-pager-view: 2aef9f11fb8f436a68e0c58f7658cad8736d1121
2362+ react-native-pager-view: ad90e78510ae4cb5f91d8b0d7ebb8a794c2ad266
23632363 react-native-randombytes: 421f1c7d48c0af8dbcd471b0324393ebf8fe7846
23642364 react-native-restart: 7595693413fe3ca15893702f2c8306c62a708162
23652365 react-native-safe-area-context: 3e6db312a77016d4f618550c814d9e236e0c0879
Original file line number Diff line number Diff line change 146146 "react-native-modal" : " 13.0.1" ,
147147 "react-native-modal-datetime-picker" : " 17.1.0" ,
148148 "react-native-notifications" : " 5.1.0" ,
149- "react-native-pager-view" : " 6.4.0 " ,
149+ "react-native-pager-view" : " 6.7.1 " ,
150150 "react-native-permissions" : " 4.0.1" ,
151151 "react-native-qrcode-svg" : " 6.2.0" ,
152152 "react-native-radial-gradient" : " 1.1.4" ,
Original file line number Diff line number Diff line change 1+ diff --git a/node_modules/react-native-pager-view/ios/Fabric/RNCPagerViewComponentView.mm b/node_modules/react-native-pager-view/ios/Fabric/RNCPagerViewComponentView.mm
2+ index 652a5c1..9141b23 100644
3+ --- a/node_modules/react-native-pager-view/ios/Fabric/RNCPagerViewComponentView.mm
4+ +++ b/node_modules/react-native-pager-view/ios/Fabric/RNCPagerViewComponentView.mm
5+ @@ -439,6 +439,13 @@ using namespace facebook::react;
6+
7+ return YES;
8+ }
9+ +
10+ +
11+ + // Allow nested scroll views to scroll simultaneously with the pager
12+ + if ([otherGestureRecognizer.view isKindOfClass: UIScrollView.class]) {
13+ + return YES;
14+ + }
15+ +
16+ const auto &viewProps = *std::static_pointer_cast<const RNCViewPagerProps>(_props);
17+ scrollView.panGestureRecognizer.enabled = viewProps.scrollEnabled;
18+ return NO;
19+ diff --git a/node_modules/react-native-pager-view/ios/RNCPagerView.m b/node_modules/react-native-pager-view/ios/RNCPagerView.m
20+ index 507b45d..cdd95c3 100644
21+ --- a/node_modules/react-native-pager-view/ios/RNCPagerView.m
22+ +++ b/node_modules/react-native-pager-view/ios/RNCPagerView.m
23+ @@ -492,6 +492,11 @@
24+ return YES;
25+ }
26+
27+ + // Allow nested scroll views to scroll simultaneously with the pager
28+ + if ([otherGestureRecognizer.view isKindOfClass: UIScrollView.class]) {
29+ + return YES;
30+ + }
31+ +
32+ self.scrollView.panGestureRecognizer.enabled = self.scrollEnabled;
33+ return NO;
34+ }
You can’t perform that action at this time.
0 commit comments