Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(mobile): show grabbers on settings sheets (#3200)

Mohamed Bassem56dd35bf4e82
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx
index be9224c4..0b5eb594 100644
--- a/apps/mobile/app/_layout.tsx
+++ b/apps/mobile/app/_layout.tsx
@@ -126,6 +126,7 @@ export default Sentry.wrap(function RootLayout() {
ios: "formSheet" as const,
default: "modal" as const,
}),
+ sheetGrabberVisible: true,
}}
/>
<Stack.Screen
@@ -140,6 +141,7 @@ export default Sentry.wrap(function RootLayout() {
ios: "formSheet" as const,
default: "modal" as const,
}),
+ sheetGrabberVisible: true,
}}
/>
</StyledStack>
diff --git a/apps/mobile/app/dashboard/_layout.tsx b/apps/mobile/app/dashboard/_layout.tsx
index 7acc330e..fb9d15fc 100644
--- a/apps/mobile/app/dashboard/_layout.tsx
+++ b/apps/mobile/app/dashboard/_layout.tsx
@@ -20,8 +20,16 @@ export default function Dashboard() {
const router = useRouter();
const { colors } = useColorScheme();
const formSheetSurfaceOptions = getFormSheetSurfaceOptions(colors.background);
+ // Settings sub-pages need an explicit formSheet presentation. Otherwise they
+ // default to "modal" (they follow a sheet), which ignores sheetGrabberVisible.
const settingsScreenOptions = {
+ ...formSheetSurfaceOptions,
headerLargeTitle: false,
+ headerTransparent: false,
+ presentation: Platform.select({
+ ios: "formSheet" as const,
+ default: "modal" as const,
+ }),
sheetGrabberVisible: true,
};
@@ -248,14 +256,8 @@ export default function Dashboard() {
<Stack.Screen
name="settings/index"
options={{
- ...formSheetSurfaceOptions,
...settingsScreenOptions,
headerTitle: "Settings",
- headerTransparent: false,
- presentation: Platform.select({
- ios: "formSheet" as const,
- default: "modal" as const,
- }),
title: "Settings",
}}
/>