@amitsolanki1409/react-native-toast-message
Version:
A customizable and lightweight toast component for React Native.
18 lines (17 loc) • 537 B
TypeScript
import React, { ReactNode } from "react";
import { TextStyle, ViewStyle, ColorValue } from "react-native";
type ToastProps = {
title?: string;
message: string;
type?: "success" | "error" | "info" | "warning";
position?: "top" | "center" | "bottom";
duration?: number;
onClose?: () => void;
Icon?: ReactNode;
titleStyle?: TextStyle;
messageStyle?: TextStyle;
containerStyle?: ViewStyle;
alertColor?: ColorValue;
};
declare const ToastService: React.FC<ToastProps>;
export default ToastService;