Switch
Renders a boolean input.
This is a controlled component that requires an onValueChange callback that updates the value prop in order for the component to reflect user actions. If the value prop is not updated, the component will continue to render the supplied value prop instead of the expected result of any user actions.
@keyword checkbox @keyword toggle
Props
- View props... @@ -46,7 +45,7 @@
ios_backgroundColoronValueChangetestID
-thumbTintColor
+thumbColortintColorvalue
-
thumbTintColor
+thumbColor
Color of the foreground switch grip. If this is set on iOS, the switch grip will lose its drop shadow.
-
thumbTintColor
+thumbColor
Color of the foreground switch grip. If this is set on iOS, the switch grip will lose its drop shadow.