import { StackScreenProps } from '@react-navigation/stack'; import * as React from 'react'; import { RefreshControl } from 'react-native'; import { Div, Button, Image, Text, Avatar, Icon } from 'react-native-magnus'; import { ScrollView } from 'react-native-gesture-handler'; import { useRequest, useCreation } from 'ahooks'; import { RootStackParamList } from '../types'; import { applyMap } from '../utils/MoneyUtils'; import { getMoney } from '../utils/SystemUtils'; import { useTranslation } from 'react-i18next'; const logo = require('../assets/images/logo2.png'); const next = require('../assets/images/next.png'); export default function WithdrawResultScreen({ navigation, route, }: StackScreenProps) { const { t } = useTranslation(); const { params } = route; const { id } = params || {}; const { data, loading, refresh } = useRequest('/withdrawApply/get/' + id, { defaultLoading: false, }); const statusInfo = useCreation(() => { if (data) { return applyMap.get(data.status); } else { return {}; } }, [data]); const bankCard = useCreation(() => { if (data) { return data.bankCard || {}; } else { return {}; } }, [data]); return (