forked from rcaferati/react-native-really-awesome-button
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
51 lines (47 loc) · 1.48 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
// Type definitions for react-native-really-awesome-button
// Project: https://github.com/rcaferati/react-native-really-awesome-button
// Definitions by: Rafael Caferati <https://github.com/rcaferati>
// TypeScript Version: 3.0.0
declare module "react-native-really-awesome-button" {
import React, { Component } from "react";
import { ViewStyle } from "react-native";
type AfterPressFn = (callback: () => void) => void;
export interface AwesomeButtonProps {
activityColor?: string;
backgroundActive?: string;
backgroundColor?: string;
backgroundImage?: string;
backgroundDarker?: string;
backgroundPlaceholder?: string;
backgroundProgress?: string;
backgroundShadow?: string;
borderColor?: string;
borderRadius?: number;
borderBottomLeftRadius?: number;
borderBottomRightRadius?: number;
borderTopLeftRadius?: number;
borderTopRightRadius?: number;
borderLeftBottomRadius?: number;
borderWidth?: number;
ExtraContent?: React.ReactNode;
disabled?: boolean;
height?: number;
paddingHorizontal?: number;
progress?: boolean;
paddingBottom?: number;
raiseLevel?: number;
springRelease?: boolean;
stretch?: boolean;
style?: ViewStyle;
textColor?: string;
textLineHeight?: number;
textSize?: number;
textFamily?: string;
width?: number;
onPress?: (afterPressFn?: AfterPressFn) => void;
}
export default class AwesomeButton extends Component<
AwesomeButtonProps,
{}
> {}
}