-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type definition added Co-authored-by: Calin Tamas <calinntamas@gmail.com> Co-authored-by: Matheus Castro <matheuscastroweb@gmail.com>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
declare module 'react-native-toast-message' { | ||
import React from 'react'; | ||
interface ObjectLiteral { | ||
[key: string]: any; | ||
} | ||
const Toast: { | ||
show(options: { | ||
type: 'success' | 'error' | 'info'; | ||
position?: 'top' | 'bottom'; | ||
text1?: string; | ||
text2?: string; | ||
visibilityTime?: number; | ||
autoHide?: boolean; | ||
topOffset?: number; | ||
bottomOffset?: number; | ||
props?: ObjectLiteral; | ||
onShow?: () => {}; | ||
onHide?: () => {}; | ||
}); | ||
hide: (options?: { onHide: () => any }) => void; | ||
setRef: (ref: any) => any; | ||
} & React.ComponentType<{ | ||
ref: (ref: any) => any; | ||
}>; | ||
export default Toast; | ||
} |