1
0
mirror of https://github.com/tooot-app/app synced 2025-03-02 02:27:42 +01:00
This commit is contained in:
xmflsct 2022-08-14 22:38:57 +02:00
parent 42528caf09
commit d0becef5bf

View File

@ -99,6 +99,7 @@ const AttachmentVideo: React.FC<Props> = ({
opacity: sensitiveShown ? 0 : 1 opacity: sensitiveShown ? 0 : 1
}} }}
usePoster usePoster
resizeMode={ResizeMode.COVER}
{...(gifv {...(gifv
? { ? {
shouldPlay: true, shouldPlay: true,
@ -107,7 +108,6 @@ const AttachmentVideo: React.FC<Props> = ({
source: { uri: video.url } source: { uri: video.url }
} }
: { : {
resizeMode: ResizeMode.COVER,
posterSource: { uri: video.preview_url }, posterSource: { uri: video.preview_url },
posterStyle: { resizeMode: ResizeMode.COVER } posterStyle: { resizeMode: ResizeMode.COVER }
})} })}