Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Add support for value prop #6

Open
ghost opened this issue Dec 6, 2018 · 0 comments
Open

Add support for value prop #6

ghost opened this issue Dec 6, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 6, 2018

This component is really nice and beautiful, but unless I can add a value prop which is not between 0 and 1, it's quite unuseful for me. My use case is like this: I want a range between 0 and 500 and my value is somewhere inbetween (e.g. 235). When endTracking is fired I want to receive a value prop I can then use to store it. Could be something like that:

min={0}
max={500}
initialPosition={prevValue}
endTracking={(position, value) =>
    // do stuff
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants