alantoa / react-native-awesome-slider

🚀 An anwesome <Slider/> that supports various features haptic, lottie, animation, ballon, etc.
MIT License
228 stars 28 forks source link

correct bubble position #64

Closed Bayramito closed 2 months ago

Bayramito commented 3 months ago

This PR centers the bubble correctly

Ekran Resmi 2024-02-29 09 00 12
alantoa commented 3 months ago

Thanks for your PR. I'll test a bit and then merge it.

alantoa commented 2 months ago

thanks you guys! just released a new version! https://github.com/alantoa/react-native-awesome-slider/releases/tag/v2.5.2

alantoa commented 1 month ago

I just noticed that this PR is not correct, so I reverted it. If you want to correct the position of the bubble, you need to preset the thumbWidth prop. For example, in your example image, you should set thumbWidth={1} in the Slider component. The bubble will automatically calculate its position.