import React, {FC} from 'react'; import {Image, ImageStyle, StyleProp, ImageBackground} from 'react-native'; type AvatarProps = { style: StyleProp; uri: string | undefined; loading?: boolean; loadingStyle?: StyleProp | undefined; }; const Avatar: FC = ({ style, uri, loading = false, loadingStyle, }) => { return loading ? ( {loading && ( )} ) : ( ); }; export default Avatar;