import {useState} from 'react' import {Dimensions, Pressable, Text, View} from 'react-native' import {DocumentPickerResponse} from 'react-native-document-picker' import Video from 'react-native-video' export default function Item({ value, onLongPress, }: { value: DocumentPickerResponse onLongPress: () => void }) { const [paused, setPaused] = useState(false) const [width, setWidth] = useState(0) const height = Dimensions.get('screen').height return ( setPaused(!paused)}> {value.name} ) }