Merge pull request #595 from benlime/master

adds resizeMode to poster image
This commit is contained in:
Hampton Maxwell 2018-05-29 16:23:58 -07:00 committed by GitHub
commit 9cf2342c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ export default class Video extends Component {
top: 0,
right: 0,
bottom: 0,
resizeMode: 'contain',
resizeMode: this.props.posterResizeMode || 'contain'
};
return (
@ -272,6 +272,7 @@ Video.propTypes = {
]),
resizeMode: PropTypes.string,
poster: PropTypes.string,
posterResizeMode: Image.propTypes.resizeMode,
repeat: PropTypes.bool,
paused: PropTypes.bool,
muted: PropTypes.bool,