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

2.1 KiB

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