You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<PagerView /> component blocks cross orientation gestures. I tried wrapping it with a <GestureDetector /> that takes a Gesture.Pan() but it wouldn't let vertical movements trigger even though it is on orientation horizontal.
I'm also running into this. No matter what I do I can't get PagerView to stop consuming vertical scroll events, so having a PagerView inside of a ScrollView completely breaks the vertical scrolling of the ScrollView. Even if I completely disable scrolling on my PagerView scrollEnabled={false} it STILL eats the touch gestures.
I've tried several different methods and the only thing I've gotten even close to working is to write my own logic with the parent view of the PagerView
Then I basically have to completely rewrite all of the logic of vertical scrolling which is a nightmare because my ScrollView also uses a refresh at the top and bottom of the scroll, plus I have to rewrite inertia logic and everything else. Basically a manual full rewrite of ScrollViews scrolling logic.
From what I can see looking through the issues on here this has been an issue for over 2 years. I tried reverting to an older verison of pager view but I can't get it to compile with react native 0.76.
This seems like a common use case to have a PagerView inside of a scrollable list of some kind, why has this issue not been fixed for years? I was using the old react native community view pager on react native 0.72 and it worked just fine but since I upgraded to 0.76 I was forced to upgrade to react native pager view and now I can't get basic functionality to work.
We had a horizontal <TabView> inside a vertical <ScrollView> that blocked swiping/scrolling.
The change in this PR/a patch similar to this #734 (comment) worked for us: the vertical scrolling and horizontal tab swiping both work.
(We only applied it to RNCPagerView not RNCPagerViewComponentView, but it might be worth trying patching that as well).
I'm also running into this. No matter what I do I can't get PagerView to stop consuming vertical scroll events, so having a PagerView inside of a ScrollView completely breaks the vertical scrolling of the ScrollView. Even if I completely disable scrolling on my PagerView scrollEnabled={false} it STILL eats the touch gestures.
I've tried several different methods and the only thing I've gotten even close to working is to write my own logic with the parent view of the PagerView
Then I basically have to completely rewrite all of the logic of vertical scrolling which is a nightmare because my ScrollView also uses a refresh at the top and bottom of the scroll, plus I have to rewrite inertia logic and everything else. Basically a manual full rewrite of ScrollViews scrolling logic.
From what I can see looking through the issues on here this has been an issue for over 2 years. I tried reverting to an older verison of pager view but I can't get it to compile with react native 0.76.
This seems like a common use case to have a PagerView inside of a scrollable list of some kind, why has this issue not been fixed for years? I was using the old react native community view pager on react native 0.72 and it worked just fine but since I upgraded to 0.76 I was forced to upgrade to react native pager view and now I can't get basic functionality to work.
Does anyone have a solution to this problem?
I tried to rewrite scroll with panGesture. But in android, swipe tab view sometimes can't work like normally.
Activity
[-]PagerView blocks vertical gestures.[/-][+]PagerView blocks cross-axis orientation gestures.[/+]FlashGameDev commentedon Jan 8, 2025
I'm also running into this. No matter what I do I can't get PagerView to stop consuming vertical scroll events, so having a PagerView inside of a ScrollView completely breaks the vertical scrolling of the ScrollView. Even if I completely disable scrolling on my PagerView
scrollEnabled={false}it STILL eats the touch gestures.I've tried several different methods and the only thing I've gotten even close to working is to write my own logic with the parent view of the PagerView
<View onTouchStart={handleTouchStart} onTouchMove={handleTouchMove}>Then I basically have to completely rewrite all of the logic of vertical scrolling which is a nightmare because my ScrollView also uses a refresh at the top and bottom of the scroll, plus I have to rewrite inertia logic and everything else. Basically a manual full rewrite of ScrollViews scrolling logic.
From what I can see looking through the issues on here this has been an issue for over 2 years. I tried reverting to an older verison of pager view but I can't get it to compile with react native 0.76.
This seems like a common use case to have a PagerView inside of a scrollable list of some kind, why has this issue not been fixed for years? I was using the old react native community view pager on react native 0.72 and it worked just fine but since I upgraded to 0.76 I was forced to upgrade to react native pager view and now I can't get basic functionality to work.
Does anyone have a solution to this problem?
ItsMeJules commentedon Jan 8, 2025
same for me, even when disabling scrolling, it still consumes the pan event.
djung-karmak commentedon Jan 10, 2025
We had a horizontal
<TabView>inside a vertical<ScrollView>that blocked swiping/scrolling.The change in this PR/a patch similar to this #734 (comment) worked for us: the vertical scrolling and horizontal tab swiping both work.
(We only applied it to
RNCPagerViewnotRNCPagerViewComponentView, but it might be worth trying patching that as well).Versions:
react-native: 0.76.5
react-native-pager-view: 6.6.1
react-native-tab-view: 4.0.5
zeevenn commentedon Apr 7, 2025
I tried to rewrite scroll with panGesture. But in android, swipe tab view sometimes can't work like normally.
MrRefactor commentedon May 30, 2025
Closing as 6.8.1 should fix this issue
zeevenn commentedon Jul 21, 2025
It maybe still exist.