React-native-slider: trackStyle and thumbStyle

Created on 9 Jul 2019  路  12Comments  路  Source: callstack/react-native-slider

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 ? :((

bug report

Most helpful comment

@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..

All 12 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings