react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

Conflicts when nesting PagerView inside of Material Top/Bottom Tab navigator

Open ConorEB opened this issue 2 years ago • 8 comments
trafficstars

Environment

  • Using Expo Router V2
  • Using React Navigation Material Top Tabs

Description

I have a vertical view pager nested inside of a material top tab screen. The vertical view pager works perfectly fine, however, I am no longer able to swipe horizontally across screens.

The nested ViewPager within the screen seems to hog all the swipe events and prevents me from swiping horizontally between screens of my navigator, which I believe is built on top of react-native-pager-view as well.

Ideally, the screen would register vertical swiping for my nested ViewPager and horizontal swiping for my navigator. Is there some way to allow my nested ViewPager to register just vertical swipes and pass through horizontal swipes to the parent?

ConorEB avatar Jul 17 '23 15:07 ConorEB

Did you find any solution?

samiullah452 avatar Jul 20 '23 23:07 samiullah452

Unfortunately not

ConorEB avatar Jul 23 '23 04:07 ConorEB