callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.22k stars 270 forks source link

fix: set default initial value on web #621

Closed draggie closed 2 months ago

draggie commented 2 months ago

Summary:

Referencing this issue: #617 React native web implementation had no default value set for initial value therefore resulting in such issues. According to mobile implementation and documentation set the default value for initialValue prop to be 0.

Test Plan:

Verified on controlled examples from example-web by setting initial useState value to undefined

events-jonas-chrisw commented 2 months ago

is this fixed - I still get an error when setting the slider to 0. I have had to revert to 4.4.2

ah...hasn't been released yet.....