UNPKG

react-native-internal-notification

Version:

Typescript component to show internal (in-app) notifications for react native application

17 lines (16 loc) 416 B
import { ReactElement } from 'react'; export interface INotiticationProps { children: ReactElement; } export interface INotificationContext { showNotification: (notification: INotification) => void; isNotificationShown: boolean; } export interface INotification { title: string; message?: string; showingTime?: number; onPress?: () => void; icon?: ReactElement; color?: string; }