import React, { useEffect, useRef } from "react"; import Video, { VideoRef } from "react-native-video"; type VideoPlayerProps = { url: string; }; export const OfflineVideoPlayer: React.FC = ({ url }) => { const videoRef = useRef(null); const onError = (error: any) => { console.error("Video Error: ", error); }; useEffect(() => { if (videoRef.current) { videoRef.current.resume(); } setTimeout(() => { if (videoRef.current) { videoRef.current.presentFullscreenPlayer(); } }, 500); }, []); return (