From 18cd074170a36ec93d3fa5098d78e17838024b3a Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Thu, 5 Nov 2026 17:08:30 -0500 Subject: [PATCH] fix(mobile): restore Android page transitions --- apps/mobile/app/(app)/(tabs)/home/_layout.tsx | 5 ----- apps/mobile/app/(app)/(tabs)/library/_layout.tsx | 5 ----- apps/mobile/app/(app)/(tabs)/search/_layout.tsx | 5 ----- apps/mobile/lib/navigation.ts | 1 + 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/apps/mobile/app/(app)/(tabs)/home/_layout.tsx b/apps/mobile/app/(app)/(tabs)/home/_layout.tsx index 195b95a..87b926d 100644 --- a/apps/mobile/app/(app)/(tabs)/home/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/home/_layout.tsx @@ -1,5 +1,4 @@ import { Stack } from "expo-router" -import { Platform } from "react-native" import { ProfileHeaderButton } from "@/components/profile-header-button" import { tabStackScreenTitles, useStackScreenOptions } from "@/lib/navigation" @@ -15,10 +14,6 @@ export default function HomeLayout() { ({ ...baseOptions, - ...(Platform.OS === "android" && - (route.name === "album/[id]" || route.name === "playlist/[id]") - ? { animation: "none" as const } - : {}), title: tabStackScreenTitles[route.name] ?? "Home", headerRight: route.name === "index" ? () => : undefined, diff --git a/apps/mobile/app/(app)/(tabs)/library/_layout.tsx b/apps/mobile/app/(app)/(tabs)/library/_layout.tsx index 1620b26..e3d9b68 100644 --- a/apps/mobile/app/(app)/(tabs)/library/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/library/_layout.tsx @@ -1,5 +1,4 @@ import { Stack } from "expo-router" -import { Platform } from "react-native" import { ProfileHeaderButton } from "@/components/profile-header-button" import { tabStackScreenTitles, useStackScreenOptions } from "@/lib/navigation" @@ -15,10 +14,6 @@ export default function LibraryLayout() { ({ ...baseOptions, - ...(Platform.OS === "android" && - (route.name === "album/[id]" || route.name === "playlist/[id]") - ? { animation: "none" as const } - : {}), title: tabStackScreenTitles[route.name] ?? "Library", headerRight: route.name === "index" ? () => : undefined, diff --git a/apps/mobile/app/(app)/(tabs)/search/_layout.tsx b/apps/mobile/app/(app)/(tabs)/search/_layout.tsx index dcea4b1..288328a 100644 --- a/apps/mobile/app/(app)/(tabs)/search/_layout.tsx +++ b/apps/mobile/app/(app)/(tabs)/search/_layout.tsx @@ -1,5 +1,4 @@ import { Stack } from "expo-router" -import { Platform } from "react-native" import { ProfileHeaderButton } from "@/components/profile-header-button" import { tabStackScreenTitles, useStackScreenOptions } from "@/lib/navigation" @@ -15,10 +14,6 @@ export default function SearchLayout() { ({ ...baseOptions, - ...(Platform.OS === "android" && - (route.name === "album/[id]" || route.name === "playlist/[id]") - ? { animation: "none" as const } - : {}), title: tabStackScreenTitles[route.name] ?? "Search", headerRight: route.name === "index" ? () => : undefined, diff --git a/apps/mobile/lib/navigation.ts b/apps/mobile/lib/navigation.ts index 63f6e0c..3340a10 100644 --- a/apps/mobile/lib/navigation.ts +++ b/apps/mobile/lib/navigation.ts @@ -28,6 +28,7 @@ export function useStackScreenOptions( headerBackButtonDisplayMode: "minimal", ...(Platform.OS === "android" ? { + animation: "slide_from_right", headerLargeTitle: false, headerTransparent: false, headerStyle: { backgroundColor: theme.background },