aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/Avatar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/common/Avatar.tsx')
-rw-r--r--src/components/common/Avatar.tsx29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/components/common/Avatar.tsx b/src/components/common/Avatar.tsx
index 86ebedf3..46a3814c 100644
--- a/src/components/common/Avatar.tsx
+++ b/src/components/common/Avatar.tsx
@@ -4,27 +4,28 @@ import {Image, ImageStyle, StyleProp, ImageBackground} from 'react-native';
type AvatarProps = {
style: StyleProp<ImageStyle>;
uri: string | undefined;
- loading: boolean;
- loadingStyle: StyleProp<ImageStyle> | undefined;
+ // loading: boolean;
+ // loadingStyle: StyleProp<ImageStyle> | undefined;
};
const Avatar: FC<AvatarProps> = ({
style,
uri,
- loading = false,
- loadingStyle,
+ // loading = false,
+ // loadingStyle,
}) => {
return (
- <ImageBackground
- style={style}
+ // <ImageBackground
+ // style={style}
+ // defaultSource={require('../../assets/images/avatar-placeholder.png')}
+ // source={{uri, cache: 'reload'}}>
+ // {loading && (
+ <Image
defaultSource={require('../../assets/images/avatar-placeholder.png')}
- source={{uri, cache: 'reload'}}>
- {loading && (
- <Image
- source={require('../../assets/gifs/loading-animation.gif')}
- style={loadingStyle}
- />
- )}
- </ImageBackground>
+ source={{uri, cache: 'reload'}}
+ style={style}
+ />
+ // )}
+ // </ImageBackground>
);
};