NativeBase
                                
                                 NativeBase copied to clipboard
                                
                                    NativeBase copied to clipboard
                            
                            
                            
                        Slider within a Modal does not update live on Android
Describe the bug
When creating a Slider within a Modal, the Slider.Thumb does not update when dragging in Android. Works perfectly fine in iOS.
To Reproduce
- Create a Modalwith aSliderchild
- Tap and drag the Slider.Thumb
- See Slider.Thumbnot following drag motion
Expected behaviour
Slider.Thumb to behave as it does on iOS where it follows along with the drag.
CodeSandBox/Snack link snack template.
Platform Android
- NativeBase version 3.2.2
- Device: Pixel 6/ Android Emulator
- OS: Android 12
- React Native version 0.63.4
- Expo sdk version 43
- node 16.13.1
- yarn 1.22.11
Additional information Works as expected on iOS. Issue only effect Android
HI @slewicki , thanks for reporting issue, we will fix it soon.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There's pretty much the same problem when Slider is wrapped into Actionsheet content.
Here's a Snack example: https://snack.expo.dev/@404-html/native-base---slider-in-actionsheet
Looks like slider's thumb is not capturing drag gesture on Android and the only way to change slider's value is to tap on the track.
This is a problem with PanResponder. Related bug: https://github.com/facebook/react-native/issues/14295
Something like this worked for me as a workaround:
<Slider.Thumb {...props}>
  <TouchableWithoutFeedback onPress={() => {}}>
    <Box position="absolute" top={0} bottom={0} left={0} right={0} />
  </TouchableWithoutFeedback>
</Slider.Thumb>
The TouchableWithoutFeedback hack doesn't fix the actionsheet/modal problem for me, fwiw.
Are there any updates to fix this issue?
Is this Issue fixed yet ?