Extended avatar component to either render an emoji avatar or image avatar depending on avatarInfo.type.
Since Multimedia only uses type and uri from mediaInfo, I only included those fields in the AvatarMediaInfo type.
Depends on D7245
Differential D7187
[native] extend avatar component to handle images ginsu on Mar 27 2023, 5:57 AM. Authored by Tags None Referenced Files
Details Extended avatar component to either render an emoji avatar or image avatar depending on avatarInfo.type. Since Multimedia only uses type and uri from mediaInfo, I only included those fields in the AvatarMediaInfo type. Depends on D7245 To test if the image was rendering correctly, I injected the following as the avatarInfo: const avatarInfo = { type: 'image', uri: 'https://picsum.photos/200' }; Please see the screenshots to see how the image avatar looks for each size: Profile: Large: Small: Micro:
Diff Detail
Event Timeline
Comment Actions Resubmitting annotations so it's easier to see on this diff
Comment Actions Is this diff still in [draft] state? Or is it ready to review? Can you remove [draft] from title and re-request review if it's ready and I'll take a look? Comment Actions
There is just one question I still have in the diff I was hoping to get your or @ashoat's 2 cents on. Sorry, I should have made that more apparent in the description. So not ready for review, but I wasn't sure what the best way to show you guys my code was besides putting up a "draft diff". For the future, is there a better way to show my code and ask questions about it than this?
|