File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { Component , ReactNode } from "react" ;
2
+
3
+ declare module "react-native-easy-toast" {
4
+ export interface DURATION {
5
+ LENGTH_SHORT : number ;
6
+ FOREVER : number ;
7
+ }
8
+ export default class Toast extends Component {
9
+ show : (
10
+ text : string | ReactNode ,
11
+ duration ?: number ,
12
+ callback ?: ( ( ) => void )
13
+ ) => void ;
14
+ close : ( duration ?: number ) => void ;
15
+ }
16
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 1.1.0" ,
4
4
"description" : " A react native module to show toast like android, it works on iOS and Android." ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " echo \" Error: no test specified\" && exit 1"
8
9
},
28
29
"url" : " https://github.com/crazycodeboy/react-native-easy-toast/issues"
29
30
},
30
31
"dependencies" : {
31
- "prop-types" : " ^15.6.0"
32
- },
32
+ "prop-types" : " ^15.6.0"
33
+ },
33
34
"peerDependencies" : {
34
35
"react-native" : " >=0.20.0" ,
35
36
"prop-types" : " ^15.5.7"
You can’t perform that action at this time.
0 commit comments