react-native-slider icon indicating copy to clipboard operation
react-native-slider copied to clipboard

trackStyle and thumbStyle

Open mojtabadarzi opened this issue 6 years ago • 12 comments

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

mojtabadarzi avatar Jul 09 '19 14:07 mojtabadarzi

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

michalchudziak avatar Jul 15 '19 10:07 michalchudziak

android linking this link have not good expression for linking package to project . help me

mojtabadarzi avatar Jul 16 '19 08:07 mojtabadarzi

Good day! Can you tell me please how can i change the thumb size?

jocoders avatar Aug 06 '19 09:08 jocoders

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

Technaur avatar Sep 11 '19 12:09 Technaur

I was wondering about these features too, why were they removed?

dbilgin avatar Oct 28 '19 12:10 dbilgin

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 avatar Nov 09 '19 15:11 tmaly1980

@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 avatar Nov 09 '19 15:11 dbilgin

@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 avatar Nov 09 '19 15:11 tmaly1980

@tmaly1980 thank you, I haven't seen this one, I'll try it out!

dbilgin avatar Nov 09 '19 16:11 dbilgin

@dbilgin Works beautifully for me!

tmaly1980 avatar Nov 09 '19 16:11 tmaly1980

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.

thinklinux avatar Dec 11 '19 09:12 thinklinux

https://github.com/react-native-community/react-native-slider/issues/169

Sharcoux avatar Apr 30 '20 09:04 Sharcoux

Please, team kindly add the styling features for the slider thumb. Thanks

dindustack avatar Oct 27 '22 20:10 dindustack

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 avatar Jan 11 '23 11:01 daddou-ma

@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 avatar Jan 12 '23 11:01 Sharcoux

@Sharcoux Didn't notice that. I'm closing the PR. Thank you

daddou-ma avatar Jan 13 '23 07:01 daddou-ma

Closing in favor of #40

BartoszKlonowski avatar Jan 18 '23 14:01 BartoszKlonowski