HomePhabricator
Diffusion Comm 0716da73f082

[native] introduce Avatar component

Description

[native] introduce Avatar component

Summary:
Introduced the Avatar component. For now, the avatar component only handles emoji avatars; however, in a subsequent diff we will extend this component to handle rendering image avatars.

This diff won't be landed until the avatars stack is all accepted


Depends on D7053

Linear Task: https://linear.app/comm/issue/ENG-3139/build-avatar-component

Test Plan:
Please look at the screenshots to see the avatars rendered

Profile:

Screenshot 2023-03-13 at 1.43.52 AM.png (1×1 px, 401 KB)

Large:

Screenshot 2023-03-13 at 1.25.59 AM.png (1×952 px, 730 KB)

Small:

Screenshot 2023-03-13 at 1.26.07 AM.png (1×1 px, 733 KB)

Micro:

Screenshot 2023-03-13 at 1.24.29 AM.png (1×1 px, 740 KB)

Reviewers: ashoat, atul

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7055

Details

Provenance
ginsuAuthored on Mar 21 2023, 8:37 AM
Reviewer
ashoat
Differential Revision
D7055: [native] introduce Avatar component
Parents
rCOMMdeb559ef04b0: [keyserver/lib] fetch avatar column from users table in fetchCurrentUserInfo
Branches
Unknown
Tags
Unknown