Skip to content

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

fix(mobile): fix formsheets on android

Mohamed Bassem228eb208c5f1
diff --git a/apps/mobile/app/dashboard/_layout.tsx b/apps/mobile/app/dashboard/_layout.tsx
index d8f9a2c7..90fb6663 100644
--- a/apps/mobile/app/dashboard/_layout.tsx
+++ b/apps/mobile/app/dashboard/_layout.tsx
@@ -80,7 +80,10 @@ export default function Dashboard() {
headerBackTitle: "Back",
headerTransparent: false,
headerLargeTitle: false,
- presentation: "formSheet",
+ presentation: Platform.select({
+ ios: "formSheet" as const,
+ default: "modal" as const,
+ }),
sheetGrabberVisible: true,
sheetAllowedDetents: [0.35, 0.7],
}}
@@ -91,7 +94,10 @@ export default function Dashboard() {
headerTitle: "Manage Tags",
headerTransparent: false,
headerLargeTitle: false,
- presentation: "formSheet",
+ presentation: Platform.select({
+ ios: "formSheet" as const,
+ default: "modal" as const,
+ }),
sheetGrabberVisible: true,
}}
/>
@@ -101,17 +107,23 @@ export default function Dashboard() {
headerTitle: "Manage Lists",
headerTransparent: false,
headerLargeTitle: false,
- presentation: "formSheet",
+ presentation: Platform.select({
+ ios: "formSheet" as const,
+ default: "modal" as const,
+ }),
sheetGrabberVisible: true,
}}
/>
<Stack.Screen
name="bookmarks/[slug]/info"
options={{
- headerTitle: "Info",
+ headerTitle: "Edit Bookmark",
headerTransparent: false,
headerLargeTitle: false,
- presentation: "formSheet",
+ presentation: Platform.select({
+ ios: "formSheet" as const,
+ default: "modal" as const,
+ }),
sheetGrabberVisible: true,
}}
/>
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
index 821e58d1..19b49021 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
@@ -398,7 +398,7 @@ const ViewBookmarkPage = () => {
options={{
headerShown: true,
headerTransparent: false,
- headerTitle: "Info",
+ headerTitle: "Edit Bookmark",
headerRight: () => (
<Pressable onPress={onDone} disabled={isEditPending}>
{isEditPending ? (