From 81660499f3bd5b5a7e2f6ddd832f511f337b3ebe Mon Sep 17 00:00:00 2001 From: panoramix360 Date: Mon, 5 Aug 2024 20:59:58 -0300 Subject: [PATCH] fix: fixing types --- app/components/files/audio_file.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/files/audio_file.tsx b/app/components/files/audio_file.tsx index 3f8a53f6fb7..8f5acbcc0a6 100644 --- a/app/components/files/audio_file.tsx +++ b/app/components/files/audio_file.tsx @@ -9,7 +9,7 @@ import { TouchableOpacity, Text, } from 'react-native'; -import Video, {type OnLoadData, type OnProgressData} from 'react-native-video'; +import Video, {type OnLoadData, type OnProgressData, type VideoRef} from 'react-native-video'; import {useTheme} from '@context/theme'; import {useDownloadFileAndPreview} from '@hooks/files'; @@ -68,7 +68,7 @@ const AudioFile = ({file, canDownloadFiles}: Props) => { const [hasEnded, setHasEnded] = useState(false); const [progress, setProgress] = useState(0); const [timeInMinutes, setTimeInMinutes] = useState('0:00'); - const videoRef = useRef