Skip to content

Commit 1224792

Browse files
committed
Use float, not int (sliding between 0 to 1 with int doesn't make sense)
Docs say "number"
1 parent 26d7255 commit 1224792

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ReactNativeSlider.re

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
external make:
33
(
44
~style: ReactNative.Style.t=?,
5-
~value: int=?,
6-
~step: int=?,
7-
~minimumValue: int=?,
8-
~maximumValue: int=?,
5+
~value: float=?,
6+
~step: float=?,
7+
~minimumValue: float=?,
8+
~maximumValue: float=?,
99
~minimumTrackTintColor: string=?,
1010
~maximumTrackTintColor: string=?,
1111
~disabled: bool=?,
12-
~onSlidingStart: int => unit=?,
13-
~onSlidingComplete: int => unit=?,
14-
~onValueChange: int => unit=?,
12+
~onSlidingStart: float => unit=?,
13+
~onSlidingComplete: float => unit=?,
14+
~onValueChange: float => unit=?,
1515
~testID: string=?,
1616
~children: React.element=?,
1717
// iOS Props

0 commit comments

Comments
 (0)