1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Image viewer use blurhash as loading placeholder

This commit is contained in:
Zhiyuan Zheng
2021-03-27 00:17:34 +01:00
parent b0b7a7567b
commit 516bb1e67d
5 changed files with 7 additions and 9 deletions

View File

@ -93,6 +93,7 @@ const ImageItem = ({
original: imageSrc.url,
remote: imageSrc.remote_url
}}
blurhash={imageSrc.blurhash}
{...((!imageSrc.width || !imageSrc.height) && {
setImageDimensions
})}

View File

@ -148,6 +148,7 @@ const ImageItem = ({
original: imageSrc.url,
remote: imageSrc.remote_url
}}
blurhash={imageSrc.blurhash}
{...((!imageSrc.width || !imageSrc.height) && {
setImageDimensions
})}