-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Version
v6 (Beta)
What platforms are you having the problem on?
Android
Architecture
Old architecture
What happened?
When using the poster prop, it works for a few seconds at the beginning, and then we have a blank screen.
Reproduction
N/A
Reproduction
N/A
Solution:
diff --git a/node_modules/react-native-video/src/Video.tsx b/node_modules/react-native-video/src/Video.tsx
index e496efc..5a97630 100644
--- a/node_modules/react-native-video/src/Video.tsx
+++ b/node_modules/react-native-video/src/Video.tsx
@@ -376,7 +376,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
);
const _onReadyForDisplay = useCallback(() => {
- setShowPoster(false);
+ setShowPoster(!!poster);
onReadyForDisplay?.();
}, [setShowPoster, onReadyForDisplay]);Reactions are currently unavailable