* upgrade reanimated * update devDependencies * upgrade react-intl * update react-native and some dependencies * update react-native-permissions * update RN * use Share sheet for Report a problem * update Sentry * remove step to downloadWebRTC * update detox deps * feedback review
30 lines
711 B
TypeScript
30 lines
711 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
import {type StyleProp, View, type ViewStyle} from 'react-native';
|
|
|
|
import ProfilePicture from '@components/profile_picture/image';
|
|
|
|
import type UserModel from '@typings/database/models/servers/user';
|
|
|
|
export type Props = {
|
|
style: StyleProp<ViewStyle>;
|
|
user: UserModel;
|
|
};
|
|
|
|
const UserAvatar = ({style, user}: Props) => {
|
|
return (
|
|
<View
|
|
key={user.id}
|
|
style={style}
|
|
>
|
|
<ProfilePicture
|
|
author={user}
|
|
size={24}
|
|
/>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default UserAvatar;
|