Skip to content

Commit

Permalink
fix: fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
panoramix360 committed Aug 5, 2024
1 parent ef9776d commit 8166049
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/files/audio_file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -68,7 +68,7 @@ const AudioFile = ({file, canDownloadFiles}: Props) => {
const [hasEnded, setHasEnded] = useState<boolean>(false);
const [progress, setProgress] = useState<number>(0);
const [timeInMinutes, setTimeInMinutes] = useState<string>('0:00');
const videoRef = useRef<Video>(null);
const videoRef = useRef<VideoRef>(null);

useEffect(() => {
if (hasEnded) {
Expand Down Expand Up @@ -153,7 +153,6 @@ const AudioFile = ({file, canDownloadFiles}: Props) => {
<Video
ref={videoRef}
source={source}
audioOnly={true}
paused={hasPaused}
onLoad={onLoad}
onProgress={onProgress}
Expand Down

0 comments on commit 8166049

Please sign in to comment.