-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathindex.d.ts
More file actions
56 lines (49 loc) · 1.59 KB
/
Copy pathindex.d.ts
File metadata and controls
56 lines (49 loc) · 1.59 KB
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
55
56
declare module "react-native-button-component" {
import * as React from 'react';
export interface InnerButtonProperties {
imageAnim?: object,
textAnim?: object,
textStyle?: number | React.TextStyle,
imageStyle?: number | React.ImageStyle,
progressAnim?: object,
progressStyle?: number | React.ViewStyle,
progressSize?: number,
progressWidth?: number,
progressTintColor?: string,
progressBackgroundColor?: string,
progressFill?: number,
progressText?: string,
textInsideProgress?: boolean,
progress?: boolean,
spinnerAnim?: object,
spinner?: boolean,
spinnerSize?: number,
spinnerType?: string,
spinnerStyle?: number | React.ViewStyle,
spinnerColor?: string,
image?: any,
text?: string,
}
export interface ButtonProperties extends InnerButtonProperties {
states?: ButtonComponentProperties,
buttonState?: ButtonComponentProperties | string,
}
export interface ButtonComponentProperties extends ButtonProperties, React.Props<ButtonComponent>{
width?: number,
height?: number,
type?: "primary" | "secondary" | string,
shape?: "rectangle" | "cicle" | string,
gradientStart?: object,
gradientEnd?: object,
gradientLocations?: Array<any>,
backgroundColors?: Array<string>,
buttonStyle?: number | React.ViewStyle,
style?: number | React.ViewStyle,
progressSize?: number,
onPress?: Function,
}
export interface ButtonComponentStatic extends React.NativeMethodsMixin, React.ComponentClass<ButtonComponentProperties>{}
var ButtonComponent: ButtonComponentStatic;
type ButtonComponent = ButtonComponentStatic;
export default ButtonComponent;
}