@equinor/mad-toast
Version:
Toast package built on top of `react-native-toast-message`
14 lines (13 loc) • 369 B
TypeScript
export declare const ToastTypes: {
readonly ERROR: "error";
readonly SUCCESS: "success";
readonly WARNING: "warning";
readonly INFO: "info";
};
export type ToastType = (typeof ToastTypes)[keyof typeof ToastTypes];
export type AddToastOptions = {
type: ToastType;
text: string;
duration?: number;
onPress?: (hide: () => void) => void;
};