Switch
A basic Switch component that should render nicely on any platform. Supports a good level of customization.
You can customization Switch component with the Props
#
Usage#
Reference#
Propshere all the list of Props you can use for Switch Component and it Inherits all Switch Props, from React Native
#
valuevalue props of the Switch false to left and true to right side and type boolean
#
onValueChangeonValueChange props for changing the value the Switch and type Function
#
onChangeInvoked when the user tries to change the value of the switch. Receives the change event as an argument. If you want to only receive the new value, use onValueChange instead and type Function
#
thumbColorColor of the foreground switch grip and type string
#
disabledIf true, disable all interactions for this component. type boolean
#
trackColorCustom colors for the switch track and type object
#
inlineStyleprops give addition props to the Button element type Object