fix recently played

This commit is contained in:
Violet Caulfield
2025-02-23 10:56:51 -06:00
parent 95fc139a56
commit ed86e0e0bb
+14 -8
View File
@@ -3,13 +3,19 @@ import { ListTemplate } from "react-native-carplay";
export const CarPlayRecentlyPlayed = (recentTracks : BaseItemDto[]) => new ListTemplate({
title: "Recently Played",
items: recentTracks.map(track => {
return {
id: track.Id!,
text: track.Name ? track.Name : "Untitled Track",
// image: {
// uri: `file://${getImageFilePath(track.Id!, 150, 150, ImageType.Primary)}`
// }
sections: [
{
header: `Recently Played`,
items: recentTracks.map(track => {
return {
id: track.Id!,
text: track.Name ? track.Name : "Untitled Track",
// image: {
// uri: `file://${getImageFilePath(track.Id!, 150, 150, ImageType.Primary)}`
// }
}
})
}
})
]
})