Maintain default poster resize mode
Set contain as the default mode when not specified
This commit is contained in:
parent
e4da5c9773
commit
e47e2a969d
2
Video.js
2
Video.js
@ -217,6 +217,7 @@ export default class Video extends Component {
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
resizeMode: this.props.posterResizeMode || 'contain'
|
||||
};
|
||||
|
||||
return (
|
||||
@ -228,7 +229,6 @@ export default class Video extends Component {
|
||||
<Image
|
||||
style={posterStyle}
|
||||
source={{uri: this.props.poster}}
|
||||
resizeMode={this.props.posterResizeMode}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user