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

How to set track's style?

Open davidguo1 opened this issue 5 years ago • 16 comments

Is there a way to set the track style? I want to change the track's height, I mean the height of the track line, not the whole component height.

davidguo1 avatar Jun 24 '20 08:06 davidguo1

You'd need to defer to native platforms' docs. If they support it, then it can be exposed on the JS side and fed down to the native.

rectified95 avatar Jul 13 '20 23:07 rectified95

Can we get a feature request?

achord avatar Jul 24 '20 02:07 achord

You can try @sharcoux/slider If you have issues with the version 4.0.0 which is brand new, you can try the 3.3.1 which is probably more reliable for now. It is basically the web implementation of this slider but made compatible with Android and iOS.

Sharcoux avatar Aug 01 '20 22:08 Sharcoux

Is there a way to set the track style? I want to change the track's height, I mean the height of the track line, not the whole component height.

did you find any solution or fix? I want to use the official library.

raazatul7 avatar Sep 01 '20 07:09 raazatul7

+1, I tried all other libraries but this is only library that can work inside react-native-modal because of touch responder system. At this time, we cannot modify track styles. I haven't tried to set trackImage + thumb image yet

luatnd avatar Sep 25 '20 09:09 luatnd

@luatnd So you tried @Sharcoux/slider and it doesn't work inside a react-native-modal, right? Do you want me to check if there is something I can do to fix this?

Sharcoux avatar Sep 25 '20 11:09 Sharcoux

Glad to hear that @Sharcoux , it's all I want except working inside modal. I'm using swipe down to dismiss modal, the modal is taking higher touch priority.

luatnd avatar Sep 28 '20 08:09 luatnd

Do you think that you could create a minimal sample code that reproduce the issue on any sandbox (codesandbox for instance)? Or at least provide a link to the lib you are talking about?

Sharcoux avatar Sep 28 '20 09:09 Sharcoux

Updates?

scchess avatar Dec 25 '20 11:12 scchess

updates?

AdrielHigor avatar Apr 22 '21 20:04 AdrielHigor

No updates?

ghost avatar Jun 30 '21 17:06 ghost

Updates or not?

renanbronchart avatar Jul 05 '21 13:07 renanbronchart

No updates?

khmilevoi avatar Aug 05 '21 08:08 khmilevoi

Guys, just use another lib. There are plenty out there, and this one is not more "official" than any other one, and it is less maintained. Move on.

Sharcoux avatar Aug 05 '21 09:08 Sharcoux

No updates?

I am using this library: @miblanchard/react-native-slider

khmilevoi avatar Aug 05 '21 15:08 khmilevoi

I use and maintain @sharcoux/slider with my company, but the lib from miblanchard seems good too depending on the use cases you have.

Sharcoux avatar Aug 05 '21 16:08 Sharcoux

Closing in favor of #40

BartoszKlonowski avatar Jan 18 '23 14:01 BartoszKlonowski