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 11import { Component , ReactNode } from "react" ;
22
3+ interface ToastComponentProps {
4+ position ?: "bottom" | "center" | "top" ;
5+ textStyle ?: { } ;
6+ positionValue ?: number ;
7+ fadeInDuration ?: number ;
8+ fadeOutDuration ?: number ;
9+ opacity ?: number ;
10+ }
11+
312declare module "react-native-easy-toast" {
4- export interface DURATION {
13+ interface IDuration {
514 LENGTH_SHORT : number ;
615 FOREVER : number ;
716 }
8- export default class Toast extends Component {
17+
18+ export var DURATION : IDuration ;
19+
20+ export default class Toast extends Component < ToastComponentProps > {
921 show : (
1022 text : string | ReactNode ,
1123 duration ?: number ,
12- callback ?: ( ( ) => void )
24+ callback ?: ( ) => void
1325 ) => void ;
1426 close : ( duration ?: number ) => void ;
1527 }
1628}
29+
You can’t perform that action at this time.
0 commit comments