fix(mobile): preserve iPad search chrome across layout changes (#13667)
This commit is contained in:
2 files changed
+12
-2
No files matched your search
@@ -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" ? (
|
||||
|
||||
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user