navigate to playback

This commit is contained in:
2025-09-03 16:41:15 +02:00
parent 482dd3f964
commit 65dcf15006
2 changed files with 38 additions and 10 deletions
+13 -9
View File
@@ -1,5 +1,7 @@
import React, { useState } from "react";
import { FlatList, Image, Text, View, useWindowDimensions } from "react-native";
import { FlatList, Image, Pressable, Text, View, useWindowDimensions } from "react-native";
import { Routes } from "../../../navigation";
import { navigate } from "../../../navigation/NavigationService";
import { useUserData } from "../../../providers/UserDataProvider";
import { Style } from "../../../styles";
import CardContainer from "./CardContainer";
@@ -28,14 +30,16 @@ const BackTracks = () => {
keyExtractor={(item) => item.id}
renderItem={({ item }) => (
<View style={{ width: itemWidth }} key={item.id}>
<Image
source={{ uri: item.coverUrl || "" }}
style={{
width: "100%",
height: Math.round((itemWidth * 16) / 9),
borderRadius: 10,
}}
/>
<Pressable onPress={() => navigate(Routes.Playbacks, { projectId: item.id })}>
<Image
source={{ uri: item.coverUrl || "" }}
style={{
width: "100%",
height: Math.round((itemWidth * 16) / 9),
borderRadius: 10,
}}
/>
</Pressable>
</View>
)}
/>