File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Component , ReactNode } from "react" ;
2
2
3
+ interface ToastComponentProps {
4
+ position ?: "bottom" | "center" | "top" ;
5
+ textStyle ?: { } ;
6
+ positionValue ?: number ;
7
+ fadeInDuration ?: number ;
8
+ fadeOutDuration ?: number ;
9
+ opacity ?: number ;
10
+ }
11
+
3
12
declare module "react-native-easy-toast" {
4
- export interface DURATION {
13
+ interface IDuration {
5
14
LENGTH_SHORT : number ;
6
15
FOREVER : number ;
7
16
}
8
- export default class Toast extends Component {
17
+
18
+ export var DURATION : IDuration ;
19
+
20
+ export default class Toast extends Component < ToastComponentProps > {
9
21
show : (
10
22
text : string | ReactNode ,
11
23
duration ?: number ,
12
- callback ?: ( ( ) => void )
24
+ callback ?: ( ) => void
13
25
) => void ;
14
26
close : ( duration ?: number ) => void ;
15
27
}
16
28
}
29
+
You can’t perform that action at this time.
0 commit comments