react-native-irano
Version:
A customizable cross-platform toast notification library for React Native.
27 lines • 1.24 kB
TypeScript
import { type TextProps, type ViewProps, type ViewStyle, type TextStyle } from 'react-native';
import { type PathProps } from 'react-native-svg';
declare const Toast: import("react").MemoExoticComponent<({ title, subtitle, preset, pathProps, textContainerProps, textContainerStyle, toastContainerProps, toastContainerStyle, titleProps, titleStyle, subtitleProps, subtitleStyle, iconContainerStyle, toastMainContainerStyle, MAX_WIDTH, autoHideDuration, position, onHide, }: ToastProps) => import("react/jsx-runtime").JSX.Element>;
export interface ToastProps extends ToastStyleProps {
title: string;
subtitle: string;
preset?: 'success' | 'error';
onHide: () => void;
}
export interface ToastStyleProps {
titleProps?: TextProps;
titleStyle?: TextStyle;
subtitleProps?: TextProps;
subtitleStyle?: TextStyle;
textContainerProps?: ViewProps;
textContainerStyle?: ViewStyle;
toastContainerProps?: ViewProps;
toastContainerStyle?: ViewStyle;
pathProps?: PathProps;
toastMainContainerStyle?: ViewStyle;
iconContainerStyle?: ViewStyle;
MAX_WIDTH?: number;
autoHideDuration?: number;
position?: 'top' | 'bottom';
}
export default Toast;
//# sourceMappingURL=toast.d.ts.map