WIP, avi not working on web
This commit is contained in:
parent
3c8b3b4782
commit
eaf0081623
3 changed files with 276 additions and 186 deletions
|
|
@ -43,6 +43,7 @@ interface BaseUserAvatarProps {
|
|||
interface UserAvatarProps extends BaseUserAvatarProps {
|
||||
moderation?: ModerationUI
|
||||
usePlainRNImage?: boolean
|
||||
onLoad?: () => void
|
||||
}
|
||||
|
||||
interface EditableUserAvatarProps extends BaseUserAvatarProps {
|
||||
|
|
@ -174,6 +175,7 @@ let UserAvatar = ({
|
|||
avatar,
|
||||
moderation,
|
||||
usePlainRNImage = false,
|
||||
onLoad,
|
||||
}: UserAvatarProps): React.ReactNode => {
|
||||
const pal = usePalette('default')
|
||||
const backgroundColor = pal.colors.backgroundLight
|
||||
|
|
@ -224,6 +226,7 @@ let UserAvatar = ({
|
|||
uri: hackModifyThumbnailPath(avatar, size < 90),
|
||||
}}
|
||||
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
||||
onLoad={onLoad}
|
||||
/>
|
||||
) : (
|
||||
<HighPriorityImage
|
||||
|
|
@ -234,6 +237,7 @@ let UserAvatar = ({
|
|||
uri: hackModifyThumbnailPath(avatar, size < 90),
|
||||
}}
|
||||
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
||||
onLoad={onLoad}
|
||||
/>
|
||||
)}
|
||||
{alert}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue