File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export interface DropdownAlertProps {
2323 cancelBtnImageStyle ?: object | number
2424 titleNumOfLines ?: number
2525 messageNumOfLines ?: number
26- onClose ?( ) : void
27- onCancel ?( ) : void
26+ onClose ?( data : AlertDataType ) : void
27+ onCancel ?( data : AlertDataType ) : void
2828 showCancel ?: boolean
2929 tapToCloseEnabled ?: boolean
3030 panResponderEnabled ?: boolean
@@ -72,3 +72,17 @@ export interface DropdownAlertProps {
7272 interval ?: number ,
7373 ) : void
7474 }
75+ export type CloseActionType =
76+ | 'automatic'
77+ | 'programmatic'
78+ | 'tap'
79+ | 'pan'
80+ | 'cancel'
81+ export type AlertDataType = {
82+ type : DropdownAlertType
83+ title : string
84+ message : string
85+ action : CloseActionType
86+ payload : object
87+ interval : number
88+ }
You can’t perform that action at this time.
0 commit comments