We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0c0c955 + 927679d commit 1b7d5e9Copy full SHA for 1b7d5e9
index.d.ts
@@ -1,16 +1,29 @@
1
import { Component, ReactNode } from "react";
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
+
12
declare module "react-native-easy-toast" {
- export interface DURATION {
13
+ interface IDuration {
14
LENGTH_SHORT: number;
15
FOREVER: number;
16
}
- export default class Toast extends Component {
17
18
+ export var DURATION: IDuration;
19
20
+ export default class Toast extends Component<ToastComponentProps> {
21
show: (
22
text: string | ReactNode,
23
duration?: number,
- callback?: (() => void)
24
+ callback?: () => void
25
) => void;
26
close: (duration?: number) => void;
27
28
29
0 commit comments