verdnatura-chat/app/utils/info.js

4 lines
187 B
JavaScript

import { Alert } from 'react-native';
export const showErrorAlert = (message, title, onPress = () => {}) => Alert.alert(title, message, [{ text: 'OK', onPress }], { cancelable: true });