30 lines
503 B
TypeScript
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,
|
|
});
|
|
}
|