Slider
A Slider component
(code example)
APIβ
accessibleβ
If true the component will have accessibility features enabled
boolean
activeThumbStyleβ
The active (during press) thumb style
ViewStyle
containerStyleβ
The container style
ViewStyle
disableActiveStylingβ
If true the Slider will not change it's style on press
boolean
disableRTLβ
If true the Slider will stay in LTR mode even if the app is on RTL mode
boolean
disabledβ
If true the Slider will be disabled and will appear in disabled color
boolean
initialMaximumValueβ
Only when useRange
is trueβ
Initial maximum value
number
initialMinimumValueβ
Only when useRange
is trueβ
Initial minimum value
number
maximumTrackTintColorβ
The track color
string
maximumValueβ
Track maximum value
number
migrateβ
Temporary prop required for migration to the Slider's new implementation
boolean
minimumTrackTintColorβ
The color used for the track from minimum value to current value
string
minimumValueβ
Track minimum value
number
onRangeChangeβ
Callback for onRangeChange. Returns values object with the min and max values
SliderOnRangeChange
onResetβ
Callback that notifies when the reset function was invoked
() => void
onSeekEndβ
Callback that notifies about slider seeking is finished
() => void
onSeekStartβ
Callback that notifies about slider seeking is started
() => void
onValueChangeβ
Callback for onValueChange
SliderOnValueChange
renderTrackβ
Custom render instead of rendering the track
() => ReactElement | ReactElement[]
stepβ
Step value of the slider. The value should be between 0 and (maximumValue - minimumValue)
number
testIDβ
The component test id
string
thumbStyleβ
The thumb style
ViewStyle
thumbTintColorβ
Thumb color
string
trackStyleβ
The track style
ViewStyle
useGapβ
If true the min and max thumbs will not overlap
boolean
useRangeβ
If true the Slider will display a second thumb for the min value
boolean
valueβ
Initial value
number