githuboftigran / rn-range-slider

A native slider with range
MIT License
234 stars 130 forks source link

Set initial/start value #75

Closed jovanialferez closed 3 years ago

jovanialferez commented 3 years ago

Is is possible to set initial value? Let say i have setup the slider with min 0 and max 50 with disableRange, but initially i wanted to show slider with position already at max value. Or maybe at a position between the range. Thanks!

jovanialferez commented 3 years ago

I tried setting low equal to the max value, but it wont allow me to drag slider to any value then.

joseocabarcas commented 3 years ago

Hi! Any solutions ?

jovanialferez commented 3 years ago

@joseomar10 i decided to use another library -- https://github.com/ptomasroos/react-native-multi-slider

githuboftigran commented 3 years ago

@jovanialferez , I can't reproduce this issue. Maybe you were using an old version. In current version you just need to set low prop to the max value (or any other value between low and high) initially, then update it on onValueChange callback.