Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

danielgindi
Copy link

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

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),

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, fixed :-)

@StevenMasini
Copy link

@danielgindi This feature would be great, where are we with it ?

@danielgindi
Copy link
Author

It's just waiting for a merge!

@StevenMasini
Copy link

@idealllee @RoshOne4 Can it be merged ?

@devth
Copy link

devth commented May 8, 2018

@jeanregisser can we get this merged? Awesome feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants