@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.
28 lines • 935 B
TypeScript
import React, { FC } from 'react';
import { TextStyle, ViewStyle } from 'react-native';
import { DismissReason, ExtraInsets, Toast as ToastType } from '../core/types';
import { Toast as T } from '../core/types';
type Props = {
toast: ToastType;
updateHeight: (toastId: string, height: number) => void;
offset: number;
endPause: () => void;
startPause: () => void;
customRenderer?: (toast: ToastType) => React.ReactNode;
overrideDarkMode?: boolean;
onToastShow?: (toast: T) => void;
onToastHide?: (toast: T, reason?: DismissReason) => void;
onToastPress?: (toast: T) => void;
extraInsets?: ExtraInsets;
keyboardVisible?: boolean;
keyboardHeight: number;
defaultStyle?: {
pressable?: ViewStyle;
view?: ViewStyle;
text?: TextStyle;
indicator?: ViewStyle;
};
};
export declare const Toast: FC<Props>;
export {};
//# sourceMappingURL=Toast.d.ts.map