/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from "react"; import { Alert, StyleSheet, Text, View, Dimensions, TouchableOpacity } from "react-native"; import Video from "react-native-video"; const { height, width } = Dimensions.get("screen"); type Props = {}; type State = { showLocal: boolean }; function Button({ text, onPress }: { text: string, onPress: () => void }) { return ( {text} ) } export default class App extends Component { state = { showLocal: false } render() { return (