import React from 'react'; import {Image, ImageProps} from 'react-native'; interface IImageProps extends ImageProps { uri?: string | null; emptySrc?: any; } export default function (props: Omit) { const {uri, emptySrc} = props; const source = uri ? { uri, } : emptySrc; return ; }