react-native-internal-notification
Version:
Typescript component to show internal (in-app) notifications for react native application
20 lines (16 loc) • 419 B
text/typescript
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;
}