import { View, Dimensions, Modal, TouchableWithoutFeedback, TouchableOpacity, ActivityIndicator, } from "react-native"; import React, { useState, useRef } from "react"; import { useTailwind } from "tailwind-rn"; import { Icon } from "@rneui/themed"; import { Video, ResizeMode } from "expo-av"; import { useSafeAreaInsets } from "react-native-safe-area-context"; const screenWidth = Dimensions.get("window").width; export default function VideoModal({ visible, setVisible, url }) { const tailwind = useTailwind(); const insets = useSafeAreaInsets(); const [isReady, setIsReady] = useState(false); const videoRef = useRef(null); const [videoSize, setVideoSize] = useState({ width: 720, height: 1280 }); return ( setVisible(false)}> {!isReady && ( )} ); }