react-native-slider icon indicating copy to clipboard operation
react-native-slider copied to clipboard

Reset Slider Thumb Position

Open Saad-Bashar opened this issue 5 years ago • 4 comments

Is there any way to reset the slider thumb position to 0 if press button?

Saad-Bashar avatar Apr 02 '19 04:04 Saad-Bashar

Okay got it working. just need to use ref to call _setCurrentValue(0)

Saad-Bashar avatar Apr 02 '19 07:04 Saad-Bashar

How you do that? ANY EXAMPLE?

trickyc0d3r avatar Jan 27 '20 14:01 trickyc0d3r

@Saad-Bashar

trickyc0d3r avatar Jan 27 '20 14:01 trickyc0d3r

<Slider ref={r => (this.slider = r)} {...sliderProps} />

Make a ref, then call this.slider._setCurrentValue(0)

viper4595 avatar Feb 06 '20 10:02 viper4595