From bb7770da2e182ca0304fc4a32a05db3dbd2c4aee Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 16 Feb 2025 18:12:09 -0600 Subject: [PATCH] shared value? --- components/Album/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Album/index.tsx b/components/Album/index.tsx index 467f7e6f..9cc2a98a 100644 --- a/components/Album/index.tsx +++ b/components/Album/index.tsx @@ -14,6 +14,7 @@ import { QueryKeys } from "../../enums/query-keys"; import { getItemsApi } from "@jellyfin/sdk/lib/utils/api"; import Client from "../../api/client"; import { useMemo } from "react"; +import { useSharedValue } from "react-native-reanimated"; export function AlbumScreen({ @@ -32,6 +33,8 @@ export function AlbumScreen({ }) const { width } = useSafeAreaFrame(); + const runTimeTicks = useSharedValue(album.RunTimeTicks!) + const { data: tracks } = useQuery({ queryKey: [QueryKeys.ItemTracks, album.Id!], queryFn: () => { @@ -99,6 +102,7 @@ export function AlbumScreen({ }} ListFooterComponent={( + Total Runtime: - { album.RunTimeTicks } + { runTimeTicks.get() }

Album Artists