name | description | type | default |
---|
value | The value of the switch. If true the switch will be turned on. Default value is false | bool | |
onValueChange | Invoked with the new value when the value changes | func | |
disabled | Whether the switch should be disabled | bool | |
width | The Switch width | number | |
height | The Switch height | number | |
onColor | The Switch background color when it's turned on | string | |
offColor | The Switch background color when it's turned off | string | |
disabledColor | The Switch background color when it's disabled | string | |
thumbColor | The Switch's thumb color | string | |
thumbSize | The Switch's thumb size (width & height) | number | |
thumbStyle | The Switch's thumb style | union | |