From 7324fe826efab3285d9e84ab1073112ccfa00405 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sun, 25 Aug 2024 18:28:48 +0200 Subject: [PATCH] fix: button not pressable --- components/PlayButton.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/PlayButton.tsx b/components/PlayButton.tsx index 810724d2..1c8ef122 100644 --- a/components/PlayButton.tsx +++ b/components/PlayButton.tsx @@ -6,7 +6,7 @@ import { BaseItemDto, PlaybackInfoResponse, } from "@jellyfin/sdk/lib/generated-client/models"; -import { View } from "react-native"; +import { TouchableOpacity, View } from "react-native"; import CastContext, { PlayServicesState, useRemoteMediaClient, @@ -83,7 +83,7 @@ export const PlayButton: React.FC = ({ item, url, ...props }) => { }, [item]); return ( - + = ({ item, url, ...props }) => { }} className="absolute w-full h-full top-0 left-0 rounded-xl bg-purple-500 opacity-40" > - + {runtimeTicksToMinutes(item?.RunTimeTicks)} @@ -110,7 +110,6 @@ export const PlayButton: React.FC = ({ item, url, ...props }) => { {client && } - - + ); };