Files
react-native/website/versioned_docs/0.33/switchios.md
T
2017-10-27 11:51:58 -07:00

2.8 KiB

id, title, original_id
id title original_id
version-0.33-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!