11 行
298 B
TypeScript
11 行
298 B
TypeScript
|
|
import Toast from 'react-native-toast-message';
|
||
|
|
import { ToastType } from 'react-native-toast-message/lib/src/types';
|
||
|
|
|
||
|
|
export const showMessage = (message: string, type?: ToastType, message2?: string) => {
|
||
|
|
Toast.show({
|
||
|
|
type: type??'success',
|
||
|
|
text1: message,
|
||
|
|
text2: message2,
|
||
|
|
});
|
||
|
|
};
|