Files
sgw-owner-app/services/toast_service.tsx
2025-11-28 16:59:57 +07:00

30 lines
503 B
TypeScript

import Toast from "react-native-toast-message";
export function showInfoToast(message: string) {
Toast.show({
type: "info",
text1: message,
});
}
export function showSuccessToast(message: string) {
Toast.show({
type: "success",
text1: message,
});
}
export function showErrorToast(message: string) {
Toast.show({
type: "error",
text1: message,
});
}
export function showWarningToast(message: string) {
Toast.show({
type: "warn",
text1: message,
});
}