react-native-slider
react-native-slider copied to clipboard
trackStyle and thumbStyle
in past version that depricated we have two property trackStyle and thumbStyle , but in this version of react-native-slider we have not this feature !! what do i for change thumb and track style ? :((
@Moji0098 Can you provide me the output of your react-native info? Also, keep in mind that these properties are supposed to work only on iOS.
android linking this link have not good expression for linking package to project . help me
Good day! Can you tell me please how can i change the thumb size?
@michalchudziak is there any way you can change the track style? Like how high/thick the track is, or if the track can have a border, etc..
I was wondering about these features too, why were they removed?
I actually don't see those props mentioned in the react-native core docs. Perhaps you're thinking of this third party library?
https://github.com/jeanregisser/react-native-slider
@tmaly1980 you are right, but it seems like that library is getting deprecated and not very active. Is there any chance we could get these capabilities here?
@dbilgin I'd assume since it's mostly native, that there would be Java/Swift code involved. There is this other library available that seems more recent (haven't tried yet):
https://azir.io/docs/components/core/slider
@tmaly1980 thank you, I haven't seen this one, I'll try it out!
@dbilgin Works beautifully for me!
They were not removed because these features were never there. I will speculate here but probably it's not that easy to add if the native sliders of iOS and Android don't support much in terms of styling the thumb. I think this one can be closed.
https://github.com/react-native-community/react-native-slider/issues/169
Please, team kindly add the styling features for the slider thumb. Thanks
After taking a look at the Code, I've found that we thumbStyle, thumbSize, trackHeight properties that are not mentioned in Readme.md Doc. maybe this could help.
Here is a PR containing README.md updates #481
@daddou-ma Hum... I'm afraid that those props are actually available only on the web implementation that I did. If you want to use them on mobile, use this. We maintain it at my company.
@Sharcoux Didn't notice that. I'm closing the PR. Thank you
Closing in favor of #40