Open vytautasvargonas opened 2 years ago
We're also encountering this issue and looking for a way to improve upon the experience on Android.
"react-native-pager-view": "6.0.1" "react-native": "0.70.5"
That is the exact problem we are currently dealing with. On iOS, it works really well, but on Android swiping needs to be perfectly horizontal to switch pages
Are there any workarounds available for this issue? It isn't deal-breaking but UX is quite subpar compared to what can be achieved using native APIs.
While I was looking for a solution, I stumbled upon this post, which has a workaround code for this exact issue: https://bladecoder.medium.com/fixing-recyclerview-nested-scrolling-in-opposite-direction-f587be5c1a04
Apparently, it is an issue of ViewPager2 itself, not necessarily this library.
Environment
Android react-native: 0.66.4 react-native-pager-view: 5.4.15
Description
Running into a couple of issues when rendering pager view inside ScrollView on Android.
These issues combined make a terrible user experience on Android.
Reproducible Demo
https://snack.expo.dev/D1avOzeAs?platform=android