avishain / react-native-range-slider-expo

Customizable range slider for react native apps
MIT License
29 stars 12 forks source link

Setting initialValue to Zero does not work #26

Closed AnatuGreen closed 1 year ago

AnatuGreen commented 2 years ago
<Slider min={0} max={40} step={1}
                        valueOnChange={value => setValue(value)}
                        initialValue={1}
                        knobColor='red'
                        valueLabelsBackgroundColor='black'
                        inRangeBarColor='purple'
                        outOfRangeBarColor='orange'
                    />

With the above, when I drag the slider more than 10, it bounces back to Zero.

I do not understand why this is happening. If I set it back to 12 as the initial value, it works well.

avishain commented 2 years ago

@AnatuGreen sorry but couldn't reproduce. does it still happen? if yes, which platform - android/ios/both?