diff --git a/apis/showApi.ts b/apis/showApi.ts index bbea269..1e0e87e 100644 --- a/apis/showApi.ts +++ b/apis/showApi.ts @@ -10,6 +10,7 @@ export type RawShow = { startDate?: string; endDate?: string | null; running: boolean; + logoUrl?: string; }; export type Show = { @@ -23,6 +24,7 @@ export type Show = { concept: string; startDate?: string; endDate?: string | null; + logoUri: string; running: boolean; }; @@ -49,6 +51,7 @@ export async function getShows(): Promise { streamingService: s.streamingServices, concept: s.concept, running: s.running, + logoUri: s.logoUrl ?? "", })); } catch (error) { console.error("Fetch error:", error); diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 456a913..7cd06d5 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -69,6 +69,7 @@ export default function HomeScreen() { concept: show.concept, genres: show.genres, streamingService: show.streamingService, + logoUri: show.logoUri, }, }) } diff --git a/app/showDetails.tsx b/app/showDetails.tsx index 7edd84d..e494ab1 100644 --- a/app/showDetails.tsx +++ b/app/showDetails.tsx @@ -16,8 +16,15 @@ import * as WebBrowser from "expo-web-browser"; import styles from "./stackStyles/showDetailStyles"; export default function ShowDetails() { - const { bannerUri, description, concept, genres, streamingService, id } = - useLocalSearchParams(); + const { + bannerUri, + description, + concept, + genres, + streamingService, + id, + logoUri, + } = useLocalSearchParams(); const [selectedParticipants, setSelectedParticipants] = React.useState(true); const [selectedSeason, setSelectedSeason] = React.useState(1); @@ -74,12 +81,6 @@ export default function ShowDetails() { paddingBottom: Dimensions.get("window").height * 0.1, }} > - router.back()}> - {title} + @@ -27,7 +30,7 @@ export default function StackHeader() { const styles = StyleSheet.create({ header: { - height: 125, + height: 150, backgroundColor: "hsl(221, 39%, 12%)", alignItems: "center", justifyContent: "space-between", @@ -46,9 +49,15 @@ const styles = StyleSheet.create({ shadowRadius: 3.84, elevation: 5, }, + logo: { + width: 150, + height: 125, + resizeMode: "contain", + marginLeft: 10, + }, title: { color: "white", - fontSize: 22, + fontSize: 14, fontWeight: "bold", }, });