mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-30 18:02:11 +00:00
Absolute positioning of all 0s was with TouchableOpacity using Animated.View, need to also specify that the Animate.View is full screen as well.
Upgraded to .10rc and .60, also added RCTWebSocket to the Xcode project since it wasn't there.
This commit is contained in:
@@ -86,9 +86,9 @@ var VideoPlayer = React.createClass({
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<TouchableOpacity onPress={() => {this.setState({paused: !this.state.paused})}}>
|
||||
<TouchableOpacity style={styles.fullScreen} onPress={() => {this.setState({paused: !this.state.paused})}}>
|
||||
<Video source={{uri: "broadchurch"}}
|
||||
style={styles.video}
|
||||
style={styles.fullScreen}
|
||||
rate={this.state.rate}
|
||||
paused={this.state.paused}
|
||||
volume={this.state.volume}
|
||||
@@ -143,7 +143,7 @@ var styles = StyleSheet.create({
|
||||
alignItems: 'center',
|
||||
backgroundColor: 'black',
|
||||
},
|
||||
video: {
|
||||
fullScreen: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
|
||||
Reference in New Issue
Block a user