fix: hiding poster (#4308)

* fix: hiding poster

* fix: hiding poster

* remove zIndex: 1

* fix: remove showPoster from dependency array
This commit is contained in:
Kamil Moskała 2024-12-01 13:41:03 +01:00 committed by GitHub
parent 63c592f7cd
commit 621a80299c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -779,9 +779,8 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
const _style: StyleProp<ViewStyle> = useMemo(
() => ({
...StyleSheet.absoluteFillObject,
...(showPoster ? {display: 'none'} : {}),
}),
[showPoster],
[],
);
return (