UNPKG

@juniorfixhow/react-native-toast

Version:
19 lines (18 loc) 588 B
import React from 'react'; export type ToastProps = { message: string; type?: 'success' | 'error' | 'warning' | 'info'; timeout?: number; position?: 'top' | 'bottom'; }; export interface ToastContextProps { showToast: (toast: ToastProps) => void; toast: ToastProps | null; } export declare const ToastContext: React.Context<ToastContextProps | undefined>; export declare const Toast: { showToast: (toast: ToastProps) => void; }; export declare const ToastProvider: ({ children }: { children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element;