adds resizeMode to poster image
This commit is contained in:
parent
98c51f114b
commit
e4da5c9773
3
Video.js
3
Video.js
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user