Rocket.Chat.ReactNative/app/utils/info.js

4 lines
187 B
JavaScript
Raw Normal View History

2019-07-23 14:02:57 +00:00
import { Alert } from 'react-native';
2018-01-15 20:43:52 +00:00
export const showErrorAlert = (message, title, onPress = () => {}) => Alert.alert(title, message, [{ text: 'OK', onPress }], { cancelable: true });