diff --git a/Video.js b/Video.js
index e8203b8b..b53885bf 100644
--- a/Video.js
+++ b/Video.js
@@ -248,35 +248,21 @@ export default class Video extends Component {
onAudioBecomingNoisy: this._onAudioBecomingNoisy,
});
- if (this.props.poster && this.state.showPoster) {
- const posterStyle = {
- position: 'absolute',
- left: 0,
- top: 0,
- right: 0,
- bottom: 0,
- resizeMode: this.props.posterResizeMode || 'contain'
- };
-
- return (
-
-
-
-
- );
- }
+ const posterStyle = {
+ ...StyleSheet.absoluteFillObject,
+ resizeMode: this.props.posterResizeMode || 'contain',
+ };
return (
-
+
+
+ {this.props.poster &&
+ this.state.showPoster && (
+
+
+
+ )}
+
);
}
}