import React, { useRef, useState } from 'react'; import { View, StyleSheet, Dimensions, Text } from 'react-native'; import { Video, ResizeMode, AVPlaybackStatus } from 'expo-av'; const { width } = Dimensions.get('window'); const VIDEO_HEIGHT = width * 0.5625; interface Props { uri: string | null; } export function VideoPlayer({ uri }: Props) { const videoRef = useRef