import { StackScreenProps } from '@react-navigation/stack'; import * as React from 'react'; import * as Animatable from 'react-native-animatable'; import { Div, Button, Image, Text, Avatar } from 'react-native-magnus'; import { ScrollView } from 'react-native-gesture-handler'; import { useTranslation } from 'react-i18next'; import { RootStackParamList } from '../types'; export default function AlertModalScreen({ navigation, route, }: StackScreenProps) { const { params } = route; const { title, msg, hasCancel, submitText, submitEvent, dangers } = params; const { t } = useTranslation(); return (
{title || t('ti-shi')} {msg}
{hasCancel && ( )}
); }