import * as React from 'react'; import { View,Image,Text,TouchableOpacity } from 'react-native'; import FastImage, { FastImageProps, Source } from 'react-native-fast-image'; import { useDispatch } from 'react-redux'; import { RematchDispatch, Models } from '@rematch/core'; import { ActivityIndicator } from '@ant-design/react-native'; import CaiNiao from '../../../icon/CaiNiao'; import { color } from '../../../constants'; import styles from './style'; interface ImageGridProps extends FastImageProps { source: Source; uploading?: boolean; parentId?: number; downloading?: boolean; } export default ({ uploading=false, downloading=false, parentId=0, ...imageProps }:ImageGridProps) => { const { common } = useDispatch>(); return ( { uploading ? 上传中 : common.deleteImage({id:parentId, photo:imageProps.source.uri})}> } ) }