Home > react-native-material-kit > SwitchProps

SwitchProps interface

Props of Switch

Signature:

export interface SwitchProps extends TouchableWithoutFeedbackProps 

Properties

Property Type Description
checked boolean Toggle status of the Switch
offColor string Color of the track, when switch is off
onCheckedChange CheckedListener Callback when the toggle status is changed.
onColor string Color of the track, when switch is checked
rippleAniDuration number Duration of the ripple effect, in milliseconds
rippleColor string Color of the ripple layer
thumbAniDuration number Duration of the thumb sliding animation, in milliseconds
thumbOffColor string Color of the thumb, when switch is off
thumbOnColor string Color of the thumb, when switch is checked
thumbRadius number Radius of the thumb button
trackLength number The length of the Switch track
trackSize number The thickness of the Switch track