/** * 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 ScheduleFlatItem from "./ScheduleFlatItem"; import CusVideo from "./CusVideo"; const instructions = Platform.select({ ios: "Press Cmd+R to reload,\n" + "Cmd+D or shake for dev menu", android: "Double tap R on your keyboard to reload,\n" + "Shake or press menu button for dev menu" }); type Props = {}; 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: "6%", video_frame_height: "32%", seat_height: "2%", flatlist_height: "60%", isFull: false, playing_key: 0 }; } render() { return (