Description
On dragging slider to value=0, onChangeValue is updated with 0. However the onChangeEndValue remains unchanged. It is occuring due to v && setOnChangeEndValue(Math.floor(v)). Removing v && fixes the issue.
CodeSandbox/Snack link
https://snack.expo.dev/98UwrdRC6_SpsdYQvHwmI
Steps to reproduce
- Go to https://docs.nativebase.io/slider
- Scroll down to 'https://docs.nativebase.io/slider#h3-value'
- Try dragging the slider to 0
https://github.com/user-attachments/assets/c1b144fa-2899-4423-bfd8-4deb8c0c74ee
- See error
NativeBase Version
3.4.x
Platform
Other Platform
No response
Additional Information
No response
Description
On dragging slider to value=0, onChangeValue is updated with 0. However the onChangeEndValue remains unchanged. It is occuring due to
v && setOnChangeEndValue(Math.floor(v)). Removingv &&fixes the issue.CodeSandbox/Snack link
https://snack.expo.dev/98UwrdRC6_SpsdYQvHwmI
Steps to reproduce
https://github.com/user-attachments/assets/c1b144fa-2899-4423-bfd8-4deb8c0c74ee
NativeBase Version
3.4.x
Platform
Other Platform
No response
Additional Information
No response