@backpackapp-io/react-native-toast
Version:
A toasting library for React Native. Built in features such as swipe to dismiss, multiple toasts, & no context power this library.
25 lines • 903 B
TypeScript
import { FunctionComponent } from 'react';
import { TextStyle, ViewStyle } from 'react-native';
import { Toast as T } from '../headless';
import { DismissReason, ExtraInsets, ToastAnimationConfig, ToastAnimationType } from '../core/types';
type Props = {
overrideDarkMode?: boolean;
extraInsets?: ExtraInsets;
onToastShow?: (toast: T) => void;
onToastHide?: (toast: T, reason?: DismissReason) => void;
onToastPress?: (toast: T) => void;
providerKey?: string;
preventScreenReaderFromHiding?: boolean;
defaultStyle?: {
pressable?: ViewStyle;
view?: ViewStyle;
text?: TextStyle;
indicator?: ViewStyle;
};
globalAnimationType?: ToastAnimationType;
globalAnimationConfig?: ToastAnimationConfig;
fixAndroidInsets?: boolean;
};
export declare const Toasts: FunctionComponent<Props>;
export {};
//# sourceMappingURL=Toasts.d.ts.map