import { StackScreenProps } from '@react-navigation/stack'; import * as React from 'react'; import * as Animatable from 'react-native-animatable'; import { Div, Button, Image, Text, Avatar, Input } from 'react-native-magnus'; import { ScrollView } from 'react-native-gesture-handler'; import { useTranslation } from 'react-i18next'; export default function InputModalScreen({ navigation, route, }: StackScreenProps) { const { params } = route; const { title,secureTextEntry, defaultVal, hasCancel, submitText, submitEvent, tips } = params || {}; const { t } = useTranslation(); const [val, setVal] = React.useState(''); const inRef = React.useRef(); return (
{title || t('ti-shi')} setVal(text)} /> {tips}
{hasCancel && ( )}
); }