GeekyAnts / GeekyAnts/NativeBase
onChangeEndValue of slider is never equals 0
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### 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
1. Go to https://docs.nativebase.io/slider
2. Scroll down to 'https://docs.nativebase.io/slider#h3-value'
3. Try dragging the slider to 0
https://github.com/user-attachments/assets/c1b144fa-2899-4423-bfd8-4deb8c0c74ee
4. See error
### NativeBase Version
3.4.x
### Platform
- [X] Android
- [X] CRA
- [X] Expo
- [X] iOS
- [X] Next
### Other Platform
_No response_
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.