verdnatura-chat/app/utils/info.js

7 lines
334 B
JavaScript
Raw Normal View History

2018-01-15 20:43:52 +00:00
import { Alert } from 'react-native';
import Toast from '@remobile/react-native-toast';
export const showToast = (message: string) => Toast.showLongCenter(message, Toast.SHORT);
export const showErrorAlert = (message: string, title: string) => Alert.alert(title, message, [{ text: 'OK', onPress: () => {} }], { cancelable: true });