/** * Created by zack on 2018/4/19. */ import { View, Text, Image, StyleSheet, TouchableHighlight, ImageBackground } from 'react-native' import React, { PureComponent } 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' export default class ShortVideoEndView extends PureComponent { constructor(props) { super(props) this.state = { leftText: "", rightText: "" } } componentDidMount() { } componentWillReceiveProps(nextProps) { if (nextProps.selectedPages != this.props.selectedPages) { this.setState({ rate: nextProps.selectedPages }) } } render() { let chatIcon = require('../../../resources/images/TabBar/Community/ShortVideo/wechat.png'); let backIcon = require('../../../resources/images/TabBar/Community/ShortVideo/circle_end.png'); let chatFirendIcon = require('../../../resources/images/TabBar/Community/ShortVideo/firend.png'); let QQIcon = require('../../../resources/images/TabBar/Community/ShortVideo/qq.png'); let sinaIcon = require('../../../resources/images/TabBar/Community/ShortVideo/weibo.png'); let replayIcon = require('../../../resources/images/TabBar/Community/ShortVideo/replay.png'); return ( {"分享到"} 微信 朋友圈 QQ 新浪微博 {"重播"} ) } onPressChat() { } onPressChatFirend(){ } onPressQQ(){ } onPressSina(){ } onPressReplay(){ //重播 this.props.replay(); } } const styles = StyleSheet.create({ //播放结束的style playJudgeStyle: { width: ScreenDimensions.width, height: 195, marginTop: -195, backgroundColor: "rgba(0,0,0,0.9)" }, judgeTopStyle: { marginHorizontal: 58 / 2, height: 62 / 2, marginTop: 32 / 2, flexDirection: "row", alignItems: "center" }, judgeLineStyle: { flex: 1.5, height: 1, backgroundColor: "#ffffff" }, judgeTopTextStyle: { // flex:1, marginHorizontal: 10, fontSize: 14, color: "#9c9c9c" }, judgeCenterStyle: { marginHorizontal: 45 / 2, flexDirection: "row", alignItems: "center", marginTop:20, }, shareChildrenView: { justifyContent: "center", alignItems: "center" }, chatIcon: { width: 58 / 2, height: 49 / 2 }, textStyle: { fontSize: 14, color: "#9c9c9c", marginTop: 8, }, backStyle: { width: 92 / 2, height: 92 / 2, justifyContent: "center", alignItems: "center" }, shareStyle: { marginRight: 28 / 2, alignItems: "center", flex:1 }, chatFirendStyle:{ width:47/2, height:47/2 }, QQStyle:{ width:41/2, height:45/2 }, sinaStyle:{ width:58/2, height:48/2 }, judgeBottomStyle:{ justifyContent:"flex-start", alignItems:"center", flex:1, flexDirection:"row", paddingLeft:20, }, replayChildrenView:{ alignItems:"center", flexDirection:"row" }, replayStyle:{ width:14, height:14 }, replayTextStyle:{ fontSize:14, color:"#fff", marginLeft:13 } })