adds resizeMode to poster image

This commit is contained in:
benlime 2017-04-30 13:43:01 +02:00
parent 98c51f114b
commit e4da5c9773

View File

@ -217,7 +217,6 @@ export default class Video extends Component {
top: 0, top: 0,
right: 0, right: 0,
bottom: 0, bottom: 0,
resizeMode: 'contain',
}; };
return ( return (
@ -229,6 +228,7 @@ export default class Video extends Component {
<Image <Image
style={posterStyle} style={posterStyle}
source={{uri: this.props.poster}} source={{uri: this.props.poster}}
resizeMode={this.props.posterResizeMode}
/> />
</View> </View>
); );
@ -271,6 +271,7 @@ Video.propTypes = {
]), ]),
resizeMode: PropTypes.string, resizeMode: PropTypes.string,
poster: PropTypes.string, poster: PropTypes.string,
posterResizeMode: Image.propTypes.resizeMode,
repeat: PropTypes.bool, repeat: PropTypes.bool,
paused: PropTypes.bool, paused: PropTypes.bool,
muted: PropTypes.bool, muted: PropTypes.bool,