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

src/SwitchRow/index.tsx:16arrow-up-right


label

label: string

Text to be displayed on the left

Inherited from

SwitchRowElementProps.label

Defined in

src/SwitchRow/index.tsx:20arrow-up-right


labelActiveColor

Optional labelActiveColor: string

Color of the left text when the switch is active

Inherited from

SwitchRowElementProps.labelActiveColor

Defined in

src/SwitchRow/index.tsx:26arrow-up-right


labelDefaultColor

Optional labelDefaultColor: string

Color of the left text when the switch is not active

Inherited from

SwitchRowElementProps.labelDefaultColor

Defined in

src/SwitchRow/index.tsx:28arrow-up-right


labelStyle

Optional labelStyle: StyleProp<TextStyle>

Left text styles

Inherited from

SwitchRowElementProps.labelStyle

Defined in

src/SwitchRow/index.tsx:24arrow-up-right


setActive

setActive: Dispatch<SetStateAction<boolean>>

Change current selection state

Inherited from

SwitchRowElementProps.setActive

Defined in

src/SwitchRow/index.tsx:18arrow-up-right


style

Optional style: StyleProp<ViewStyle>

TouchableOpacity (View) container styles

Inherited from

SwitchRowElementProps.style

Defined in

src/SwitchRow/index.tsx:22arrow-up-right


thumbColor

Optional thumbColor: string

Color of the thumb

Inherited from

SwitchRowElementProps.thumbColor

Defined in

src/SwitchRow/index.tsx:34arrow-up-right


trackActiveColor

Optional trackActiveColor: string

Color of the track text when the switch is active

Inherited from

SwitchRowElementProps.trackActiveColor

Defined in

src/SwitchRow/index.tsx:30arrow-up-right


trackDefaultColor

Optional trackDefaultColor: string

Color of the track text when the switch is not active

Inherited from

SwitchRowElementProps.trackDefaultColor

Defined in

src/SwitchRow/index.tsx:32arrow-up-right

Last updated

Was this helpful?