forked from testshallpass/react-native-dropdownalert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
72 lines (71 loc) · 2.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import React, { ReactNode } from 'react'
export interface DropdownAlertProps {
imageSrc?: string | number
infoImageSrc?: string | number
warnImageSrc?: string | number
errorImageSrc?: string | number
successImageSrc?: string | number
cancelBtnImageSrc?: string | number
infoColor?: string
warnColor?: string
errorColor?: string
successColor?: string
closeInterval?: number
startDelta?: number
endDelta?: number
wrapperStyle?: object | number
containerStyle?: object | number
safeAreaStyle?: object | number
titleStyle?: object | number
messageStyle?: object | number
imageStyle?: object | number
cancelBtnImageStyle?: object | number
titleNumOfLines?: number
messageNumOfLines?: number
onClose?(): void
onCancel?(): void
showCancel?: boolean
tapToCloseEnabled?: boolean
panResponderEnabled?: boolean
replaceEnabled?: boolean
translucent?: boolean
useNativeDriver?: boolean
activeStatusBarStyle?: string
activeStatusBarBackgroundColor?: string
inactiveStatusBarStyle?: string
inactiveStatusBarBackgroundColor?: string
updateStatusBar?: boolean
elevation?: number
zIndex?: number
sensitivity?: number
defaultContainer?: object | number
defaultTextContainer?: object | number
renderImage?(props: DropdownAlertProps, state: { type: string }): ReactNode
renderCancel?(props: DropdownAlertProps, state: { type: string }): ReactNode
renderTitle?(props: DropdownAlertProps, state: { type: string }): ReactNode
renderMessage?(
props: DropdownAlertProps,
state: { type: string }
): ReactNode
testID?: string
accessible?: boolean
accessibilityLabel?: string
titleTextProps?: object
messageTextProps?: object
}
export type DropdownAlertType =
| 'info'
| 'warn'
| 'error'
| 'custom'
| 'success'
export default class DropdownAlert extends React.Component<
DropdownAlertProps
> {
alertWithType(
type: DropdownAlertType,
title: string,
message: string,
interval?: number
): void
}