-
Notifications
You must be signed in to change notification settings - Fork 71
/
index.d.ts
40 lines (37 loc) · 1.08 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
import React from 'react';
import { ModalProps } from 'react-native';
export interface AwesomeAlertProps {
show?: boolean;
useNativeDriver?: boolean;
showProgress?: boolean;
title?: string;
message?: string;
closeOnTouchOutside?: boolean;
closeOnHardwareBackPress?: boolean;
showCancelButton?: boolean;
showConfirmButton?: boolean;
cancelText?: string;
confirmText?: string;
onCancelPressed?: () => void;
onConfirmPressed?: () => void;
onDismiss?: () => void;
customView?: JSX.Element | React.ReactNode;
alertContainerStyle?: object;
overlayStyle?: object;
progressSize?: string;
progressColor?: string;
contentContainerStyle?: object;
contentStyle?: object;
titleStyle?: object;
messageStyle?: object;
actionContainerStyle?: object;
cancelButtonColor?: string;
cancelButtonTextStyle?: object;
cancelButtonStyle?: object;
confirmButtonColor?: string;
confirmButtonTextStyle?: object;
confirmButtonStyle?: object;
modalProps?: ModalProps;
}
declare class AwesomeAlert extends React.Component<AwesomeAlertProps> {}
export default AwesomeAlert;