From 843372704cc743f7c304a19a19870da2633016e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Moska=C5=82a?= <91079590+moskalakamil@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:12:41 +0100 Subject: [PATCH] fix: hiding poster --- src/Video.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Video.tsx b/src/Video.tsx index cc6a10dd5f..2947bdab89 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -434,7 +434,9 @@ const Video = forwardRef( const onVideoLoad = useCallback( (e: NativeSyntheticEvent) => { - hasPoster && setShowPoster(false); + if (Platform.OS === 'windows') { + hasPoster && setShowPoster(false); + } onLoad?.(e.nativeEvent); }, [onLoad, hasPoster, setShowPoster], @@ -771,7 +773,7 @@ const Video = forwardRef( const _style: StyleProp = useMemo( () => ({ ...StyleSheet.absoluteFillObject, - ...(showPoster ? {display: 'none'} : {}), + ...(showPoster ? {zIndex: 1} : {}), }), [showPoster], );