import { useVideoPlayer, VideoView } from 'expo-video'; import { Pressable, StyleProp, ViewStyle } from 'react-native'; const VideoPlayer = ({ videoUrl, style, onPress }: { videoUrl: string; style?: StyleProp; onPress?: () => void; }) => { const player = useVideoPlayer(videoUrl, (player) => { player.loop = true; player.play(); }); return ( ); }; export default VideoPlayer