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!