UNPKG

react-native-bottom-snackbar

Version:
17 lines (16 loc) 696 B
import { SnackbarType, ISnackbarComponentProps, SnackbarOption } from './AlertComponent'; declare const AlertBottomSnackbar: { (props: ISnackbarComponentProps): JSX.Element; /** * @param message The message that you want to show. * @param type Type must be any of these: "normal", "error", "success", "info", "warn" DEFAULT: "normal". * @param onClose callback will run only if snackbar get closed automatically. */ show(message: string, type?: SnackbarType, onClose?: () => void): void; /** * closes all opened snackbar. */ close(): void; }; export type { SnackbarType, ISnackbarComponentProps, SnackbarOption }; export { AlertBottomSnackbar };