ptomasroos / react-native-multi-slider

Android and iOS Pure JS react native multi slider
MIT License
775 stars 401 forks source link

Min/Max Issue #243

Open timothyerwin opened 3 years ago

timothyerwin commented 3 years ago

I think there is some bug on this component...when you set min/max it works fine until you update value using this.setState after which max loses its value by 1...

So below...if I use this.setState({ ...this.state, values: [5] }); then max only goes to 99 now.

<MultiSlider
        min={0}
        max={100}
        enabledTwo={false}
        allowOverlap={false}
        values={this.state.values} />
chrissnape commented 3 years ago

If you set allowOverlap to true, it should work correctly

sandeep855 commented 1 year ago

if you pass a value in max greater than 6 digits eg: max={9999999} It hangs your device to load this value. Sometimes crashes app.