|
@@ -32,13 +32,12 @@ class LiveVideo extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
|
|
+ var ScrollableTabView = require('react-native-scrollable-tab-view');
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<View style={{flex:1}}>
|
|
<View style={{flex:1}}>
|
|
|
- <ScrollView
|
|
|
|
|
- horizontal={true}
|
|
|
|
|
- pagingEnabled={true}
|
|
|
|
|
- >
|
|
|
|
|
- <View style={styles.videoPage}>
|
|
|
|
|
|
|
+ <ScrollableTabView renderTabBar={ () => <View/> } >
|
|
|
|
|
+ <View tabLabel="Video" style={styles.videoPage}>
|
|
|
<View style={styles.video}>
|
|
<View style={styles.video}>
|
|
|
<Video source={{ uri: "https://plataforma.especificosba.com.ar/hls/movie.m3u8" }}
|
|
<Video source={{ uri: "https://plataforma.especificosba.com.ar/hls/movie.m3u8" }}
|
|
|
ref={(ref) => { this.player = ref }}
|
|
ref={(ref) => { this.player = ref }}
|
|
@@ -54,11 +53,11 @@ class LiveVideo extends Component {
|
|
|
|
|
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
|
- <View style={{flex:1,width:700}}>
|
|
|
|
|
|
|
+ <View tabLabel="Chat">
|
|
|
<Chat messages={this.state.messages} />
|
|
<Chat messages={this.state.messages} />
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
|
- </ScrollView>
|
|
|
|
|
|
|
+ </ScrollableTabView>
|
|
|
<Socket onDiapoChanged={this.onDiapoChanged.bind(this)} onMessage={this.onMessage.bind(this)} />
|
|
<Socket onDiapoChanged={this.onDiapoChanged.bind(this)} onMessage={this.onMessage.bind(this)} />
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
@@ -72,7 +71,7 @@ const styles = StyleSheet.create({
|
|
|
flex: 1
|
|
flex: 1
|
|
|
},
|
|
},
|
|
|
video: {
|
|
video: {
|
|
|
- width: 320,
|
|
|
|
|
|
|
+ flex:1,
|
|
|
justifyContent: 'center',
|
|
justifyContent: 'center',
|
|
|
alignItems: 'center',
|
|
alignItems: 'center',
|
|
|
backgroundColor: '#F5FCFF',
|
|
backgroundColor: '#F5FCFF',
|
|
@@ -80,7 +79,7 @@ const styles = StyleSheet.create({
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
imageContainer: {
|
|
imageContainer: {
|
|
|
- width: 320,
|
|
|
|
|
|
|
+ flex:1,
|
|
|
margin: 5
|
|
margin: 5
|
|
|
},
|
|
},
|
|
|
instructions: {
|
|
instructions: {
|