diff --git a/apps/expo/src/app/(tabs)/downloads.tsx b/apps/expo/src/app/(tabs)/downloads.tsx index e8a2295..02ac31f 100644 --- a/apps/expo/src/app/(tabs)/downloads.tsx +++ b/apps/expo/src/app/(tabs)/downloads.tsx @@ -14,7 +14,7 @@ import { useDownloadManager } from "~/hooks/DownloadManagerContext"; import { usePlayerStore } from "~/stores/player/store"; const DownloadsScreen: React.FC = () => { - const { startDownload, downloads, removeDownload } = useDownloadManager(); + const { startDownload, downloads } = useDownloadManager(); const resetVideo = usePlayerStore((state) => state.resetVideo); const setAsset = usePlayerStore((state) => state.setAsset); const router = useRouter(); @@ -94,7 +94,6 @@ const DownloadsScreen: React.FC = () => { key={item.id} {...item} onPress={() => handlePress(item.asset)} - onLongPress={removeDownload} /> ))} diff --git a/apps/expo/src/components/DownloadItem.tsx b/apps/expo/src/components/DownloadItem.tsx index 103b9a2..4d59ec3 100644 --- a/apps/expo/src/components/DownloadItem.tsx +++ b/apps/expo/src/components/DownloadItem.tsx @@ -16,11 +16,10 @@ export interface DownloadItemProps { fileSize: number; downloaded: number; isFinished: boolean; - onLongPress: (id: string) => void; statusText?: string; asset?: Asset; - onPress: (asset?: Asset) => void; isHLS?: boolean; + onPress: (asset?: Asset) => void; } enum ContextMenuActions { @@ -45,11 +44,10 @@ export const DownloadItem: React.FC = ({ fileSize, downloaded, isFinished, - onLongPress, statusText, asset, - onPress, isHLS, + onPress, }) => { const percentage = progress * 100; const formattedFileSize = formatBytes(fileSize); @@ -105,11 +103,7 @@ export const DownloadItem: React.FC = ({ onPress={onContextMenuPress} previewBackgroundColor="transparent" > - onPress(asset)} - onLongPress={() => onLongPress(id)} - activeOpacity={0.7} - > + onPress(asset)} activeOpacity={0.7}>