UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

28 lines (24 loc) 820 B
import {ReactElement} from 'react'; import {ImageRequireSource} from 'react-native'; import {BaseComponent} from '../commons'; import {ColorValue} from '../style/colors'; export type ToastPosition = 'top' | 'bottom'; export interface ToastProps { visible?: boolean; position?: ToastPosition; backgroundColor?: ColorValue; color?: ColorValue; message?: string; icon?: ImageRequireSource; action?: any; // This is actually ButtonProps, but it's not available here. onDismiss?: () => void; autoDismiss?: number; onAnimationEnd?: (visible: boolean) => void; centerMessage?: boolean; zIndex?: number; showLoader?: boolean; showDismiss?: boolean; renderAttachment?: () => React.ReactElement; customLoader?: () => React.ReactElement; } export class Toast extends BaseComponent<ToastProps> {}