Slider
Component that is based on @react-native-community/slider
library.
https://github.com/callstack/react-native-slider (opens in a new tab)
Import
import { Slider } from 'react-native-ficus-ui';
Usage
Default
EDITABLE EXAMPLE
Change value
EDITABLE EXAMPLE
Custom step
EDITABLE EXAMPLE
Props
Extends every Box
props and SliderProps
from @react-native-community/slider
colorScheme
The colorScheme property, will define slider main color
Type | Required |
---|---|
string | No |
filledTrackColor
The filled track color of the slider.
Type | Required |
---|---|
string | No |
min
The minimum value of the slider input.
Type | Required | Default |
---|---|---|
number | No | 0 |
max
The maximum value of the slider input.
Type | Required | Default |
---|---|---|
number | No | 1 |
defaultValue
The default value of the slider input.
Type | Required |
---|---|
number | No |