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"; const screenWidth = Dimensions.get("window").width; export default function VideoModal({ visible, setVisible, url }) { const tailwind = useTailwind(); const [isReady, setIsReady] = useState(false); const videoRef = useRef(null); const [videoSize, setVideoSize] = useState({ width: 720, height: 1280 }); return ( setVisible(false)}> {!isReady && } ); }