@janiscommerce/ui-native
Version:
components library for Janis app
24 lines (23 loc) • 792 B
TypeScript
import React, { FC } from 'react';
import { TextStyle } from 'react-native';
import { BaseToastProps } from '../../atoms/BaseToast';
export interface ToastProps extends BaseToastProps {
props?: {
showIcon?: boolean;
customIcon?: string;
showCloseIcon?: boolean;
actionTitle?: string;
onCloseCb?: () => void;
actionCb?: () => void;
iconStyle?: TextStyle;
};
}
declare const Toast: FC<ToastProps>;
export declare const configToast: {
success: (props: ToastProps) => React.JSX.Element;
notice: (props: ToastProps) => React.JSX.Element;
warning: (props: ToastProps) => React.JSX.Element;
error: (props: ToastProps) => React.JSX.Element;
action: (props: ToastProps) => React.JSX.Element;
};
export default Toast;