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:
Jason Brown
2015-08-24 23:03:55 -07:00
parent 1f0ba1347b
commit b499d9e0b3
3 changed files with 35 additions and 5 deletions
+3 -3
View File
@@ -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,