/* @flow strict-local */
import { Alert } from 'react-native';
import Toast from '@remobile/react-native-toast';

export const showToast = (message: string) => {
  Toast.show(message, Toast.SHORT);
};

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

/* @flow strict-local */
import { Alert } from 'react-native';
import Toast from '@remobile/react-native-toast';

export const showToast = (message: string) => {
  Toast.show(message);
};

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

Drop ignored second argument to `Toast.show`.
toast: Drop ignored second argument to `Toast.show`.

Sadly, for this library we have only an autogenerated libdef stub
full of `any`, which is why this type error wasn't found by Flow.
