Add to discover stack, fix album names not showing in stack

This commit is contained in:
Violet Caulfield
2025-02-18 23:00:06 -06:00
parent c78fa93e94
commit 38e6eb002e
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -4,6 +4,7 @@ import Index from "./component";
import DetailsScreen from "../ItemDetail/screen";
import Player from "../Player/stack";
import Albums from "../Albums/component";
import { AlbumScreen } from "../Album";
export const DiscoverStack = createNativeStackNavigator<StackParamList>();
@@ -26,6 +27,15 @@ export function Discover(): React.JSX.Element {
}}
/>
<DiscoverStack.Screen
name="Album"
component={AlbumScreen}
options={({ route }) => ({
title: route.params.album.Name ?? "Untitled Album",
headerTitle: ""
})}
/>
<DiscoverStack.Screen
name="Albums"
component={Albums}
+1 -1
View File
@@ -59,7 +59,7 @@ export default function Home(): React.JSX.Element {
name="Album"
component={AlbumScreen}
options={({ route }) => ({
headerShown: true,
title: route.params.album.Name ?? "Untitled Album",
headerTitle: ""
})}
/>