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 the slider's main color.
Type | Required | Default |
---|---|---|
string | No |
filledTrackColor
The filled track color of the slider.
Type | Required | Default |
---|---|---|
string | No |
min
The minimum value of the slider input.
Type | Required | Default |
---|---|---|
number | No |
max
The maximum value of the slider input.
Type | Required | Default |
---|---|---|
number | No |
defaultValue
The default value of the slider input.
Type | Required | Default |
---|---|---|
number | No |