SwitchRowProps
@chelseaapps/react-native-elements / Exports / SwitchRowProps
Interface: SwitchRowProps
Hierarchy
SwitchRowElementProps↳
SwitchRowProps
Table of contents
Properties
active
label
labelActiveColor
labelDefaultColor
labelStyle
setActive
style
thumbColor
trackActiveColor
trackDefaultColor
Properties
active
• active: boolean
Current selection state
Inherited from
SwitchRowElementProps.active
Defined in
label
• label: string
Text to be displayed on the left
Inherited from
SwitchRowElementProps.label
Defined in
labelActiveColor
• Optional labelActiveColor: string
Color of the left text when the switch is active
Inherited from
SwitchRowElementProps.labelActiveColor
Defined in
labelDefaultColor
• Optional labelDefaultColor: string
Color of the left text when the switch is not active
Inherited from
SwitchRowElementProps.labelDefaultColor
Defined in
labelStyle
• Optional labelStyle: StyleProp<TextStyle>
Left text styles
Inherited from
SwitchRowElementProps.labelStyle
Defined in
setActive
• setActive: Dispatch<SetStateAction<boolean>>
Change current selection state
Inherited from
SwitchRowElementProps.setActive
Defined in
style
• Optional style: StyleProp<ViewStyle>
TouchableOpacity (View) container styles
Inherited from
SwitchRowElementProps.style
Defined in
thumbColor
• Optional thumbColor: string
Color of the thumb
Inherited from
SwitchRowElementProps.thumbColor
Defined in
trackActiveColor
• Optional trackActiveColor: string
Color of the track text when the switch is active
Inherited from
SwitchRowElementProps.trackActiveColor
Defined in
trackDefaultColor
• Optional trackDefaultColor: string
Color of the track text when the switch is not active
Inherited from
SwitchRowElementProps.trackDefaultColor
Defined in
Last updated
Was this helpful?