-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.d.ts
36 lines (33 loc) · 972 Bytes
/
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
import { Component } from "react";
import { StyleProp, ViewStyle, TextStyle } from "react-native";
declare module "react-native-alert-pro" {
export type AlertProProps = {
title?: string;
message?: string;
showCancel?: boolean;
showConfirm?: boolean;
textCancel?: string;
textConfirm?: string;
closeOnPressMask?: boolean;
closeOnPressBack?: boolean;
useNativeDriver?: boolean;
customStyles?: {
title?: StyleProp<TextStyle>;
message?: StyleProp<TextStyle>;
mask?: StyleProp<ViewStyle>;
container?: StyleProp<ViewStyle>;
buttonCancel?: StyleProp<ViewStyle>;
buttonConfirm?: StyleProp<ViewStyle>;
textCancel?: StyleProp<TextStyle>;
textConfirm?: StyleProp<TextStyle>;
};
onCancel?: () => void;
onConfirm?: () => void;
onClose?: () => void;
};
class AlertPro extends Component<AlertProProps> {
open(): void;
close(): void;
}
export default AlertPro;
}