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

2.1 KiB

id, original_id, title
id original_id title
version-0.34-switchandroid switchandroid switchandroid

SwitchAndroid #

@deprecated

Use <Switch> instead for cross-platform compatibility.

Props #

disabled PropTypes.bool #

If true, this component can't be interacted with.

onValueChange PropTypes.func #

Invoked with the new value when the value changes.

testID PropTypes.string #

Used to locate this view in end-to-end tests.

value PropTypes.bool #

Boolean value of the switch.

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