Files
react-native/website/_versioned_docs/version-0.35/switchios.md
T
2017-11-14 12:51:44 -08:00

2.8 KiB

id, original_id, title
id original_id title
version-0.35-switchios switchios switchios

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!