-
Notifications
You must be signed in to change notification settings - Fork 263
/
Copy pathindex.d.ts
37 lines (31 loc) · 793 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
/**
* react-native-easy-toast
* https://github.com/crazycodeboy/react-native-easy-toast
* Email:[email protected]
* Blog:https://www.devio.org/
* @flow
*/
import { Component, ReactNode } from "react";
interface ToastComponentProps {
position?: "bottom" | "center" | "top";
textStyle?: {};
positionValue?: number;
fadeInDuration?: number;
fadeOutDuration?: number;
opacity?: number;
}
declare module "react-native-easy-toast" {
interface IDuration {
LENGTH_SHORT: number;
FOREVER: number;
}
export var DURATION: IDuration;
export default class Toast extends Component<ToastComponentProps> {
show: (
text: string | ReactNode,
duration?: number,
callback?: () => void
) => void;
close: (duration?: number) => void;
}
}