react-native-alert-notification
Version:
Toast notification and dialog box notification for react native
20 lines (19 loc) • 1.09 kB
TypeScript
/// <reference types="react" />
import { ALERT_TYPE } from './config/ENV';
import { Dialog, IConfigDialog, IConfigToast, Root } from './containers';
import { Toast } from './containers';
export { Dialog, Toast, Root };
export { Dialog as AlertNotificationDialog, Toast as AlertNotificationToast, Root as AlertNotificationRoot, ALERT_TYPE, IConfigDialog, IConfigToast };
declare const _default: {
Dialog: typeof Dialog;
Toast: typeof Toast;
Root: import("react").FunctionComponent<{
dialogConfig?: Pick<IConfigDialog, "closeOnOverlayTap" | "autoClose"> | undefined;
toastConfig?: Pick<IConfigToast, "autoClose" | "titleStyle" | "textBodyStyle"> | undefined;
theme?: "light" | "dark" | undefined;
colors?: [import("./service").IColors, import("./service").IColors] | undefined;
children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
}>;
ALERT_TYPE: typeof ALERT_TYPE;
};
export default _default;