callstack / callstack/react-native-pager-view
How to disable ViewPager at ends so that screen gesture can take over?
- Dominant language
- TypeScript
- Stars
- 3.4k
- Forks
- 476
- Avg merge
- 10d 21h
- Merged PRs (30d)
- 2
Description
I'm using react-navigation with the fullScreenSwipeEnabled option which allows to swipe back on the entire screen in iOS.
It's great except on the ViewPager, even when it's at the end it steals the touch and won't let the full-screen back to work.
Is there anyway to disable the viewpager at the ends where it has no more pages *so that* that the screen-back takes over?
It would essentially be like as if you have the pager nested inside another horizontal scrolling container and want it to give up the touch events when it reaches it's end.
I've played with onMoveShouldSetResponderCapture and onStartShouldSetResponder setting them to false and doesn't work.
It does work when the swipeEnabled is set to false but need to figure out when to temporarily disable it. Has anyone figured out which callbacks to hook into to determine if we can temporarily disable the pager swiping.
Contributor guide
Assessment
This issue has not been assessed yet.