// components/VideoSplashScreen.tsx import React, { useEffect, useRef, useState } from 'react'; import { View, StyleSheet, ActivityIndicator } from 'react-native'; import { Video, ResizeMode, AVPlaybackStatus } from 'expo-av'; import * as SplashScreen from 'expo-splash-screen'; // Keep the splash screen visible while we fetch resources SplashScreen.preventAutoHideAsync(); interface VideoSplashScreenProps { onFinish: () => void; } const VideoSplashScreen: React.FC = ({ onFinish }) => { const videoRef = useRef