import React from 'react'; import { Image, Animated, ImageProps, StyleProp, ViewStyle, StyleSheet, } from 'react-native'; import {elevationShadowStyle} from '../../Helpers/styleGenerator'; import {ThemeTypes, useTheme} from '../../Theming'; export interface AvatarImageProps extends ImageProps { elevation?: number; size?: number; containerStyle?: StyleProp; padding?: number; color?: string; dense?: boolean; theme?: ThemeTypes; backgroundColor?: string; } const AvatarImage: React.FC = ({ source, size = 32, padding, elevation, color, backgroundColor, style, containerStyle, theme, ...props }) => { theme = useTheme(theme); backgroundColor = backgroundColor || theme.color.primary; return ( ); }; AvatarImage.displayName = 'Avatar.Image'; export default AvatarImage;