react-native-alert-notification
Version:
Toast notification and dialog box notification for react native
15 lines (14 loc) • 595 B
TypeScript
import * as React from 'react';
import { ReactElement } from 'react';
import { IConfigToast } from './Toast';
import { IConfigDialog } from './Dialog';
import { IColors } from '../service';
declare type IProps = {
dialogConfig?: Pick<IConfigDialog, 'closeOnOverlayTap' | 'autoClose'>;
toastConfig?: Pick<IConfigToast, 'autoClose' | 'titleStyle' | 'textBodyStyle'>;
theme?: 'light' | 'dark';
colors?: [IColors, IColors] /** ['light_colors' , 'dark_colors'] */;
children: ReactElement | ReactElement[];
};
export declare const Root: React.FunctionComponent<IProps>;
export {};