Skip to content

Commit

Permalink
Merge pull request #595 from benlime/master
Browse files Browse the repository at this point in the history
adds resizeMode to poster image
  • Loading branch information
cobarx authored May 29, 2018
2 parents dc6eed2 + e47e2a9 commit 9cf2342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class Video extends Component {
top: 0,
right: 0,
bottom: 0,
resizeMode: 'contain',
resizeMode: this.props.posterResizeMode || 'contain'
};

return (
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9cf2342

Please sign in to comment.