/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View, Image, TouchableOpacity, ImageBackground, FlatList, findNodeHandle, UIManager, StatusBar, BackHandler, Button, DeviceEventEmitter } from 'react-native'; import Orientation from 'react-native-orientation'; import AndroidUtil from '../../util/AndroidUtil'; import BasePage from '../BasePage'; import CourseTitle from './CourseTitle'; import SharedDialog from './SharedDialog'; import ScheduleFlatItem from './ScheduleFlatItem'; import CusVideo from './CusVideo'; import ScheduleUrl from '../services/schedule'; import wechat from '../utils/wechat'; export default class SchedulePage extends BasePage { constructor(props) { super(props); this.state = { statusbar_hidden: false, video_show: false, x: 0.0, y: 0.0, videoImg_flex: 1, videoImage_width: 0, videoImage_height: 0, videoImage_x: 0.0, videoImage_y: 0.0, video_uri: 'https://www.apple.com/105/media/cn/iphone-x/2017/01df5b43-28e4-4848-bf20-490c34a926a7/films/feature/iphone-x-feature-cn-20170912_1280x720h.mp4', title_height: '9%', video_frame_height: '32%', seat_height: '2%', flatlist_height: '60%', isFull: false, playing_key: 0, scheduleTitle: '', wareList: [], colorList: [ '#FFBC3D', '#FB5B76', '#EC48E1', '#39D6B9', '#3397F0' ] }; } render() { return (