/** * Created by zack on 2018/4/19. */ import { View, Text, Image, StyleSheet, TouchableHighlight, ImageBackground } from 'react-native' import React, { Component } from 'react' import ScreenDimensions from '../../../utils/ScreenDimensions' import ScreenDimensionsClientHeight from '../../../utils/ScreenDimensions' import NavigationBarHeight from '../../../utils/NavigationBarHeight' import TabBarHeight from '../../../utils/TabBarHeight' import RefreshInfiniteListView from '../../../utils/RefreshInfiniteListView' import Video from 'react-native-video' import BottomView from "./BottomView" import ChatInputBar from './CustomKeyboard/ChatInputBar'; import RichTextWrapper from './CustomKeyboard/RichTextWrapper'; //ScreenDimensions.clientHeight export default class VideoDetailsCellViewContorller extends Component { constructor(props) { super(props) this.state = { rate: 1, showMp: true, rate:this.props.selectedPages } } componentDidMount() { } componentWillReceiveProps(nextProps) { if(nextProps.selectedPages != this.props.selectedPages){ this.setState({ rate:nextProps.selectedPages }) } } render() { return ( ); } loadStart() { //需要 添加背景图片 console.log("loadStart=======") } onProgress() { } onEnd() { } onError() { console.log("onError=======") } onAudioBecomingNoisy() { } onAudioFocusChanged() { } onLoad() { console.log("当视频加载完毕时的回调函数") this.setState({ showMp: false }) } videoError() { } onPressInput(){ console.log("text-========") this.refs.chatInputBar.openInputBar(); } _onSendMsg(text){ console.log("text-========",text) } } const styles = StyleSheet.create({ View: { width: ScreenDimensions.width, height: ScreenDimensions.height, backgroundColor:"yellow" }, fullScreen: { width: ScreenDimensions.width, height: ScreenDimensions.height, }, loadingStyle: { position: 'absolute', top: -ScreenDimensions.height, left: 0, bottom: 0, right: 0, }, btn_backStyle:{ width:25/2, height:49/2, marginLeft:21, marginTop:22 }, topStyle:{ position: 'absolute', top:0, left:0, right:0, height:88, backgroundColor:'rgba(255,255,255,.1)', justifyContent: "space-between", flexDirection: "row", }, cellLeftStyle:{ }, cellRightStyle:{ }, bottomView:{ position: 'absolute', top: ScreenDimensions.height/2, left: 0, right: 0, backgroundColor:"yellow", width:ScreenDimensions.width, height:ScreenDimensions.height/2, } })