githuboftigran / rn-range-slider

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

Cannot drag to Min value #77

Closed abdymm closed 3 years ago

abdymm commented 3 years ago

Hi, i try with this

<Slider
        style={styles.slider}
        min={2}
        max={10}
        low={low}
        high={high}
        step={2}
        disableRange
        floatingLabel
        renderThumb={renderThumb}
        renderRail={renderRail}
        renderRailSelected={renderRailSelected}
        renderLabel={renderLabel}
        renderNotch={renderNotch}
        onValueChanged={handleValueChange}
      />

when i try to drag it back to lower value, which is, 2, i cant, it just stuck in 4 is that any props that i miss for this case?

githuboftigran commented 3 years ago

@abdymm looks like you don't update low state variable when handleValueChange is triggered.

abdymm commented 3 years ago

ahh no, i see the other issue , and after update with the latest, it running well now Thanks! @githuboftigran