Skip to content
TypeScript

fix(mobile): preserve iPad search chrome across layout changes (#13667)

Alexb147dc99e31d
diff --git a/apps/mobile/src/features/home/HomeRouteScreen.tsx b/apps/mobile/src/features/home/HomeRouteScreen.tsx
index b946f546967..965f57262a8 100644
--- a/apps/mobile/src/features/home/HomeRouteScreen.tsx
+++ b/apps/mobile/src/features/home/HomeRouteScreen.tsx
@@ -150,7 +150,15 @@ export function HomeRouteScreen() {
options={
Platform.OS === "android"
? { headerShown: false }
- : { title: "", headerTitle: "", unstable_headerLeftItems: () => [] }
+ : {
+ title: "",
+ headerTitle: "",
+ unstable_headerLeftItems: () => [],
+ // Options survive layout changes; search and settings now belong to the sidebar.
+ headerSearchBarOptions: undefined,
+ unstable_headerRightItems: () => [],
+ unstable_headerToolbarItems: () => [],
+ }
}
/>
{Platform.OS === "ios" ? (
diff --git a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
index ee2574fcee0..5fbe3257c1c 100644
--- a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
+++ b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
@@ -495,7 +495,9 @@ function AdaptiveWorkspaceLayoutContent(
renderedSidebarWidth,
]);
const sidebarAnimatedStyle = useAnimatedStyle(() => ({
- opacity: Math.min(1, renderedSidebarWidth.value / 80),
+ // Fading a UIKit glass ancestor can leave remounted header effects missing.
+ // The clipped width already reveals and hides the iOS sidebar.
+ opacity: Platform.OS === "ios" ? 1 : Math.min(1, renderedSidebarWidth.value / 80),
width: renderedSidebarWidth.value,
}));