UNPKG

qvt-components

Version:

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

42 lines (41 loc) 1.22 kB
export interface ISwitchSelectorOption { label: string; value: string | number; customIcon?: JSX.Element; imageIcon?: string; activeColor?: string; accessibilityLabel?: string; testID?: string; } export interface ISwitchSelectorProps { options: ISwitchSelectorOption[]; initial?: number; value?: number; onPress(value: string | number | ISwitchSelectorOption): void; fontSize?: number; selectedColor?: string; buttonMargin?: number; buttonColor?: string; textColor?: string; backgroundColor?: string; borderColor?: string; borderRadius?: number; hasPadding?: boolean; animationDuration?: number; valuePadding?: number; height?: number; bold?: boolean; textStyle?: TextStyle; selectedTextStyle?: TextStyle | RegisteredStyle<TextStyle>; textCStyle?: TextStyle | RegisteredStyle<TextStyle>; selectedTextContainerStyle?: TextStyle | RegisteredStyle<TextStyle>; imageStyle?: ImageStyle | RegisteredStyle<ImageStyle>; style?: ViewStyle | RegisteredStyle<ViewStyle>; returnObject?: boolean; disabled?: boolean; disableValueChangeOnPress?: boolean; accessibilityLabel?: string; testID?: string; textContainerStyle: TextStyle, borderWidth: number, }