SwitchIOS #

@deprecated

Use <Switch> instead for cross-platform compatibility.

Props #

disabled PropTypes.bool #

If true the user won't be able to toggle the switch. Default value is false.

onTintColor color #

Background color when the switch is turned on.

onValueChange PropTypes.func #

Callback that is called when the user toggles the switch.

thumbTintColor color #

Background color for the switch round button.

tintColor color #

Background color when the switch is turned off.

value PropTypes.bool #

The value of the switch, if true the switch will be turned on. Default value is false.

You can edit the content above on GitHub and send us a pull request!