Maintain default poster resize mode

Set contain as the default mode when not specified
This commit is contained in:
Hampton Maxwell 2018-05-29 16:22:46 -07:00 committed by GitHub
parent e4da5c9773
commit e47e2a969d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);