You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,13 +83,19 @@ To use this library you need to ensure you are using the correct version of Reac
83
83
|`minimumValue`| Initial minimum value of the slider.<br/>Default value is 0. | number ||
84
84
|`lowerLimit`| Slide lower limit. The user won't be able to slide below this limit. | number | Android, iOS, Web |
85
85
|`upperLimit`| Slide upper limit. The user won't be able to slide above this limit. | number | Android, iOS, Web |
86
+
|`minimumRange`| Minimum distance between lower and upper thumbs when `range` is true.<br/>Default value is 0. | number ||
86
87
|`onSlidingStart`| Callback that is called when the user picks up the slider.<br/>The initial value is passed as an argument to the callback handler. | function ||
87
88
|`onSlidingComplete`| Callback that is called when the user releases the slider, regardless if the value has changed.<br/>The current value is passed as an argument to the callback handler. | function ||
88
89
|`onValueChange`| Callback continuously called while the user is dragging the slider. | function ||
90
+
|`onRangeSlidingStart`| Callback that is called when the user touches either range thumb.<br/>The current values and active thumb index are passed as arguments. Used when `range` is true. | function ||
91
+
|`onRangeSlidingComplete`| Callback that is called when the user releases either range thumb.<br/>The current values and active thumb index are passed as arguments. Used when `range` is true. | function ||
92
+
|`onValuesChange`| Callback continuously called while the user is dragging either range thumb.<br/>The current values and active thumb index are passed as arguments. Used when `range` is true. | function ||
89
93
|`step`| Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.<br/>On Windows OS the default value is 1% of slider's range (from `minimumValue` to `maximumValue`). | number ||
90
94
|`maximumTrackTintColor`| The color used for the track to the right of the button.<br/>Overrides the default gray gradient image on iOS. |[color](https://reactnative.dev/docs/colors)||
91
95
|`testID`| Used to locate this view in UI automation tests. | string ||
92
96
|`value`| Write-only property representing the value of the slider. Can be used to programmatically control the position of the thumb. Entered once at the beginning still acts as an initial value. Changing the value programmatically does not trigger any event.<br/>The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_This is not a controlled component_, you don't need to update the value during dragging. | number ||
97
+
|`range`| Enables two-thumb range selection.<br/>Default value is false. | bool ||
98
+
|`values`| Write-only property representing the lower and upper values of the range slider. Used when `range` is true. |[number, number]||
93
99
|`tapToSeek`| Permits tapping on the slider track to set the thumb position.<br/>Defaults to false on iOS. No effect on Android or Windows. | bool | iOS |
94
100
|`inverted`| Reverses the direction of the slider.<br/>Default value is false. | bool ||
95
101
|`vertical`| Changes the orientation of the slider to vertical, if set to `true`.<br/>Default value is false. | bool | Windows |
0 commit comments