mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:43:25 +00:00
feat: mp4 downloads
This commit is contained in:
@@ -1,26 +1,12 @@
|
||||
import React from "react";
|
||||
import { ScrollView } from "react-native-gesture-handler";
|
||||
|
||||
import type { DownloadItemProps } from "~/components/DownloadItem";
|
||||
import { DownloadItem } from "~/components/DownloadItem";
|
||||
import ScreenLayout from "~/components/layout/ScreenLayout";
|
||||
import { useDownloadManager } from "~/hooks/DownloadManagerContext";
|
||||
|
||||
export default function DownloadsScreen() {
|
||||
const downloads: DownloadItemProps[] = [
|
||||
{
|
||||
filename: "episode.mp4",
|
||||
progress: 0.3,
|
||||
speed: 1.2,
|
||||
fileSize: 500 * 1024 * 1024,
|
||||
downloaded: 150 * 1024 * 1024,
|
||||
},
|
||||
{
|
||||
filename: "episode.m3u8",
|
||||
progress: 0.7,
|
||||
speed: 0.8,
|
||||
fileSize: 200 * 1024 * 1024,
|
||||
downloaded: 140 * 1024 * 1024,
|
||||
},
|
||||
];
|
||||
const DownloadsScreen: React.FC = () => {
|
||||
const { downloads } = useDownloadManager();
|
||||
|
||||
return (
|
||||
<ScreenLayout title="Downloads">
|
||||
@@ -31,4 +17,6 @@ export default function DownloadsScreen() {
|
||||
</ScrollView>
|
||||
</ScreenLayout>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default DownloadsScreen;
|
||||
|
Reference in New Issue
Block a user