-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple thumbs #89
base: master
Are you sure you want to change the base?
Conversation
Now we can pass an array to `value` to achieve multiple thumbs. `thumbImage` accepts an array also - to override individual thumbs. There's a new `thumbView` property, that works like `thumbImage` but supplies the whole thumb View. An idea I took from @doctadre's PR, is better naming for the following props: `minimumTrackTintColor` is deprecated, use `trackHighlightColor` `maximumTrackTintColor ` is deprecated, use `trackColor`
src/Slider.js
Outdated
trackHighlightStyle = { | ||
position: 'absolute', | ||
left: 0, | ||
width: Animated.add(thumbLeft, thumbSize.width / 2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielgindi should the thumbLeft
be something else given that it no longer exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, fixed :-)
…sappear for single thumb
fix value prop update
@danielgindi This feature would be great, where are we with it ? |
It's just waiting for a merge! |
@idealllee @RoshOne4 Can it be merged ? |
@jeanregisser can we get this merged? Awesome feature. |
Now we can pass an array to
value
to achieve multiple thumbs.thumbImage
accepts an array also - to override individual thumbs.There's a new
thumbView
property, that works likethumbImage
but supplies the whole thumb View.An idea I took from @doctadre's PR, is better naming for the following props:
minimumTrackTintColor
is deprecated, usetrackHighlightColor
maximumTrackTintColor
is deprecated, usetrackColor