react-native-slider
react-native-slider copied to clipboard
Slider doesn't work on Android Navigation Drawer
Environment
Description
I've got a brightness slider on my app'ss navigation drawer, I'm able to use it without any issues on iOS but the slider itself doesn't work on Android.
On Android, the slider only works when dragged with two fingers, tap to seek also works. However when I try dragging using one finger it doesn't work. I've created a snack below to reproduce this issue, any ideas what might be causing this?
Reproducible Demo
Here's a snack I created, you can try it on the android emulator.
Hello @nishmeht7, thank you for reporting that and providing me with an example.
Two fingers are required to slide the <Slider/> on the Android when Accessibility is turned on, but I don't see it in the provided example of yours.
Second thing that comes to my mind is the issue with parent scrolled element consuming the sliding on <Slider/>, just like #296.
I will try to take a deeper look into that.
@nishmeht7 Hi, I guess is gueture problem. You can try react-native-awesome-slider, sliding is disable other gesture.
Its a gesture problem, the drawer gesture is overriding the slider gesture