import { Pressable } from "react-native"; import Animated, { type AnimatedStyle } from "react-native-reanimated"; import { useTapDetection } from "./useTapDetection"; const AnimatedPressable = Animated.createAnimatedComponent(Pressable); interface Props { screenWidth: number; screenHeight: number; onToggleControls: () => void; animatedStyle: AnimatedStyle; } export const VideoTouchOverlay = ({ screenWidth, screenHeight, onToggleControls, animatedStyle, }: Props) => { const { handleTouchStart, handleTouchEnd } = useTapDetection({ onValidTap: onToggleControls, }); return ( ); };