Skip to content

Commit

Permalink
fix: hiding poster (#4308)
Browse files Browse the repository at this point in the history
* fix: hiding poster

* fix: hiding poster

* remove zIndex: 1

* fix: remove showPoster from dependency array
  • Loading branch information
moskalakamil authored Dec 1, 2024
1 parent 63c592f commit 621a802
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,8 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
const _style: StyleProp<ViewStyle> = useMemo(
() => ({
...StyleSheet.absoluteFillObject,
...(showPoster ? {display: 'none'} : {}),
}),
[showPoster],
[],
);

return (
Expand Down

0 comments on commit 621a802

Please sign in to comment.