Closed MattinNajafi closed 9 months ago
Normally, you can try to use minTrackStyle
and maxTrackStyle
to do the gradient, but I didn't try.
You can use either a CustomThumb
or thumbImage
to do the thumb.
What do you mean by using minTrackStyle
and maxTrackStyle
?
As it is today i dont know a way to add gradient to a ViewProp.
That might work for web, but as long as it is not natively supported by RN, you'll need to rely on react-native-linear-gradient. The issue is that this component doesn't use that component to represent the tracks. What you could try is to apply a gradient over the track with absolute positioning.
You might also try to convince your designer that this gradient will increase the complexity of the project for not so much user benefits, and could be reconsidered.
True!! You can close this.
No bug but a question. Is there a way to add trackImage or add a gradient to the track?
I have a design that im trying to reproduce: