From 3e72bfa56c860826429a842f6c128d78d4a930db Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 1 Jun 2017 19:47:08 -0400 Subject: react-native-web port of fmf app --- client/src/lib/views/information.js | 114 ++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 client/src/lib/views/information.js (limited to 'client/src/lib/views/information.js') diff --git a/client/src/lib/views/information.js b/client/src/lib/views/information.js new file mode 100644 index 0000000..c48eb7f --- /dev/null +++ b/client/src/lib/views/information.js @@ -0,0 +1,114 @@ +import React, { Component } from 'react'; +import { + StyleSheet, + Image, +} from 'react-native'; + +import ScrollableContainer from '../components/scrollableContainer' +import ClearText from '../components/text' + +export default class Information extends Component { + constructor(props) { + super() + } + render() { + const content = this.props.content + return ( + + + {this.props.content.show} + + + + + {this.props.content.aiWeiWeiBio} + + + + {this.props.content.herzogBio} + + + {this.props.content.deMeuronBio} + + + + + ); + } +} + +/* + this.youtubePlayer = ref} + videoId={content.video.token} + play={false} + hidden={false} + fullscreen={false} + loop={true} + controls={1} + showFullscreenButton={true} + showinfo={false} + modestbranding={true} + rel={false} + iv_load_policy={3} + + onReady={(e)=>{this.setState({isReady: true})}} + onChangeState={(e)=>{ + if (e.state == 'playing') { + this.props.onVideoPlay() + } + else { + this.props.onVideoPause() + } + }} + onChangeFullscreen={(e)=>{ + if (e.isFullscreen) { + this.props.onVideoPlay() + } + else { + this.props.onVideoPause() + } + }} + onError={(e)=>{this.setState({error: e.error})}} + onProgress={(e)=>{this.setState({currentTime: e.currentTime, duration: Math.round(e.duration)})}} + + style={styles.video} + /> +*/ + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'flex-start', + alignItems: 'flex-start', + }, + bodyStyle: { + marginRight: 10, + }, + video: { + alignSelf: 'stretch', + height: 400, + width: '100%', + backgroundColor: 'black', + marginVertical: 10 + }, + body: { + textAlign: 'left', + paddingRight: 10, + width: '90%', + marginBottom: 20, + maxWidth: 600, + }, + hero: { + width: '90%', + height: 300, + }, + face: { + width: '90vw', + height: 400, + marginBottom: 20, + }, + footer: { + marginBottom: 80, + }, +}) -- cgit v1.2.3-70-g09d2