Slider
A simple Switch component.
Import
import { Switch } from "react-native-ficus-ui";
Usage
Default
EDITABLE EXAMPLE
Change color
EDITABLE EXAMPLE
Sizes
EDITABLE EXAMPLE
Change animation duration
EDITABLE EXAMPLE
Disabled
EDITABLE EXAMPLE
Props
Extends every Box
props.
colorScheme
The colorScheme property, will define background color of switch when is active.
Type | Required | Default |
---|---|---|
string | No |
isDisabled
Disables onPress handler when true.
Type | Required | Default |
---|---|---|
boolean | No |
isChecked
Makes the toggle checked when true.
Type | Required | Default |
---|---|---|
boolean | No |
onPress
onPress event handler.
Type | Required | Default |
---|---|---|
function | No |