fix: local asset playback

This commit is contained in:
Adrian Castro
2024-03-26 16:06:13 +01:00
parent 1e975ddce4
commit 0566b5ba54
4 changed files with 29 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
import type { Asset } from "expo-media-library";
import React from "react";
import { Platform } from "react-native";
import { ScrollView } from "react-native-gesture-handler";
import { useRouter } from "expo-router";
import { MaterialCommunityIcons } from "@expo/vector-icons";
@@ -35,7 +34,7 @@ const DownloadsScreen: React.FC = () => {
backgroundColor="$sheetItemBackground"
icon={
<MaterialCommunityIcons
name={Platform.select({ ios: "apple", android: "android" })}
name="download"
size={24}
color={theme.buttonSecondaryText.val}
/>
@@ -50,7 +49,7 @@ const DownloadsScreen: React.FC = () => {
}
}}
>
test local playback (expo-av)
test download (mp4)
</MWButton>
<ScrollView>
{downloads.map((item) => (