-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
39 lines (36 loc) · 1.12 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
import * as React from "react";
import Alert = RNAlert.Alert;
export = Alert;
declare namespace RNAlert {
interface AlertProps {
alertBGContainerStyle?: StyleSheet;
alertBGColor?: String;
alertIconVisible?: Boolean;
alertLoadingVisible?: Boolean;
alertIconSource?: any;
alertIconSize?: Number;
alertIconTintColor?: String;
alertIconResizeMode?: ["center", "contain", "cover", "repeat", "stretch"];
alertAnimatedIcon?: Boolean;
alertAnimatedIconDuration?: Number;
alertTitle?: String;
alertTitleStyle?: StyleSheet;
alertMessage?: String;
alertMessageStyle?: StyleSheet;
alertButtonTitle?: Array<String>;
alertButtonPosition?: ["start", "center", "end"];
alertButtonStyle?: StyleSheet;
alertButtonTextStyle?: StyleSheet;
alertAutoHide?: Boolean;
alertAutoHideDuration?: Number;
alertTapToDismiss?: Boolean;
onPressAlert?: () => void;
onPressButtonOne?: () => void;
onPressButtonTwo?: () => void;
onAlertShow?: () => void;
onAlertHide?: () => void;
}
class Alert extends React.Component<AlertProps> {
static default: typeof Alert;
}
}