-
Notifications
You must be signed in to change notification settings - Fork 115
/
index.d.ts
54 lines (50 loc) · 1.52 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
declare module "react-native-switch-selector" {
import { Component } from "react";
import {
ImageStyle,
RegisteredStyle,
TextStyle,
ViewStyle
} from "react-native";
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 | RegisteredStyle<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;
}
class SwitchSelector extends Component<ISwitchSelectorProps> {}
export default SwitchSelector;
}