Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fix

daniel31x13a8ecfe8c5adb
diff --git a/apps/mobile/app/(tabs)/collections/_layout.tsx b/apps/mobile/app/(tabs)/collections/_layout.tsx
index 71412591..c28880b1 100644
--- a/apps/mobile/app/(tabs)/collections/_layout.tsx
+++ b/apps/mobile/app/(tabs)/collections/_layout.tsx
@@ -2,6 +2,7 @@ import { Stack, useRouter } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
import { Platform } from "react-native";
+import TabBarSafeArea from "@/components/TabBarSafeArea";
export default function Layout() {
const router = useRouter();
@@ -11,47 +12,49 @@ export default function Layout() {
Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;
return (
- <Stack
- screenOptions={{
- headerTitle: "Collections",
- headerLargeTitle: true,
- headerTintColor: colorScheme === "dark" ? "white" : "black",
- headerTransparent: Platform.OS === "ios",
- headerSearchBarOptions: {
- placeholder: "Search Collections",
- autoCapitalize: "none",
- ...(isIOS26Plus && {
- allowToolbarIntegration: false,
- placement: "integratedButton",
- }),
- onChangeText: (e) => {
- router.setParams({
- search: encodeURIComponent(e.nativeEvent.text),
- });
+ <TabBarSafeArea>
+ <Stack
+ screenOptions={{
+ headerTitle: "Collections",
+ headerLargeTitle: true,
+ headerTintColor: colorScheme === "dark" ? "white" : "black",
+ headerTransparent: Platform.OS === "ios",
+ headerSearchBarOptions: {
+ placeholder: "Search Collections",
+ autoCapitalize: "none",
+ ...(isIOS26Plus && {
+ allowToolbarIntegration: false,
+ placement: "integratedButton",
+ }),
+ onChangeText: (e) => {
+ router.setParams({
+ search: encodeURIComponent(e.nativeEvent.text),
+ });
+ },
+ headerIconColor: colorScheme === "dark" ? "white" : "black",
},
- headerIconColor: colorScheme === "dark" ? "white" : "black",
- },
- headerShadowVisible: false,
- headerBlurEffect: isIOS26Plus
- ? undefined
- : colorScheme === "dark"
- ? "systemMaterialDark"
- : "systemMaterial",
+ headerShadowVisible: false,
+ headerBlurEffect: isIOS26Plus
+ ? undefined
+ : colorScheme === "dark"
+ ? "systemMaterialDark"
+ : "systemMaterial",
- headerLargeStyle: {
- backgroundColor: isIOS26Plus
- ? "transparent"
- : rawTheme[colorScheme as ThemeName]["base-100"],
- },
- headerStyle: {
- backgroundColor:
- Platform.OS === "ios"
+ headerLargeStyle: {
+ backgroundColor: isIOS26Plus
? "transparent"
- : colorScheme === "dark"
- ? rawTheme["dark"]["base-100"]
- : "white",
- },
- }}
- />
+ : rawTheme[colorScheme as ThemeName]["base-100"],
+ },
+ headerStyle: {
+ backgroundColor:
+ Platform.OS === "ios"
+ ? "transparent"
+ : colorScheme === "dark"
+ ? rawTheme["dark"]["base-100"]
+ : "white",
+ },
+ }}
+ />
+ </TabBarSafeArea>
);
}
diff --git a/apps/mobile/app/(tabs)/dashboard/_layout.tsx b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
index 1a392d37..a9fa79aa 100644
--- a/apps/mobile/app/(tabs)/dashboard/_layout.tsx
+++ b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
@@ -5,6 +5,7 @@ import { useColorScheme } from "nativewind";
import { Platform, TouchableOpacity } from "react-native";
import { SheetManager } from "react-native-actions-sheet";
import * as DropdownMenu from "zeego/dropdown-menu";
+import TabBarSafeArea from "@/components/TabBarSafeArea";
export default function Layout() {
const router = useRouter();
@@ -14,88 +15,90 @@ export default function Layout() {
Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;
return (
- <Stack
- screenOptions={{
- headerLargeTitle: true,
- headerTransparent: Platform.OS === "ios",
- headerShadowVisible: false,
- headerBlurEffect: isIOS26Plus
- ? undefined
- : colorScheme === "dark"
- ? "systemMaterialDark"
- : "systemMaterial",
- headerTintColor: colorScheme === "dark" ? "white" : "black",
- headerLargeStyle: {
- backgroundColor: isIOS26Plus
- ? "transparent"
- : rawTheme[colorScheme as ThemeName]["base-100"],
- },
- headerStyle: {
- backgroundColor:
- Platform.OS === "ios"
+ <TabBarSafeArea>
+ <Stack
+ screenOptions={{
+ headerLargeTitle: true,
+ headerTransparent: Platform.OS === "ios",
+ headerShadowVisible: false,
+ headerBlurEffect: isIOS26Plus
+ ? undefined
+ : colorScheme === "dark"
+ ? "systemMaterialDark"
+ : "systemMaterial",
+ headerTintColor: colorScheme === "dark" ? "white" : "black",
+ headerLargeStyle: {
+ backgroundColor: isIOS26Plus
? "transparent"
- : colorScheme === "dark"
- ? rawTheme["dark"]["base-100"]
- : "white",
- },
- }}
- >
- <Stack.Screen
- name="index"
- options={{
- headerTitle: "Dashboard",
- headerRight: () => (
- <DropdownMenu.Root>
- <DropdownMenu.Trigger>
- <TouchableOpacity>
- <Plus
- size={21}
- color={rawTheme[colorScheme as ThemeName].primary}
- />
- </TouchableOpacity>
- </DropdownMenu.Trigger>
-
- <DropdownMenu.Content>
- <DropdownMenu.Item
- key="new-link"
- onSelect={() => SheetManager.show("add-link-sheet")}
- >
- <DropdownMenu.ItemTitle>New Link</DropdownMenu.ItemTitle>
- </DropdownMenu.Item>
- <DropdownMenu.Item
- key="new-collection"
- onSelect={() => SheetManager.show("new-collection-sheet")}
- >
- <DropdownMenu.ItemTitle>
- New Collection
- </DropdownMenu.ItemTitle>
- </DropdownMenu.Item>
- </DropdownMenu.Content>
- </DropdownMenu.Root>
- ),
- }}
- />
- <Stack.Screen
- name="[section]"
- options={{
- headerTitle: "Links",
- headerBackTitle: "Back",
- headerSearchBarOptions: {
- placeholder: "Search",
- autoCapitalize: "none",
- ...(isIOS26Plus && {
- allowToolbarIntegration: false,
- placement: "integratedButton",
- }),
- headerIconColor: colorScheme === "dark" ? "white" : "black",
- onChangeText: (e) => {
- router.setParams({
- search: encodeURIComponent(e.nativeEvent.text),
- });
- },
+ : rawTheme[colorScheme as ThemeName]["base-100"],
+ },
+ headerStyle: {
+ backgroundColor:
+ Platform.OS === "ios"
+ ? "transparent"
+ : colorScheme === "dark"
+ ? rawTheme["dark"]["base-100"]
+ : "white",
},
}}
- />
- </Stack>
+ >
+ <Stack.Screen
+ name="index"
+ options={{
+ headerTitle: "Dashboard",
+ headerRight: () => (
+ <DropdownMenu.Root>
+ <DropdownMenu.Trigger>
+ <TouchableOpacity>
+ <Plus
+ size={21}
+ color={rawTheme[colorScheme as ThemeName].primary}
+ />
+ </TouchableOpacity>
+ </DropdownMenu.Trigger>
+
+ <DropdownMenu.Content>
+ <DropdownMenu.Item
+ key="new-link"
+ onSelect={() => SheetManager.show("add-link-sheet")}
+ >
+ <DropdownMenu.ItemTitle>New Link</DropdownMenu.ItemTitle>
+ </DropdownMenu.Item>
+ <DropdownMenu.Item
+ key="new-collection"
+ onSelect={() => SheetManager.show("new-collection-sheet")}
+ >
+ <DropdownMenu.ItemTitle>
+ New Collection
+ </DropdownMenu.ItemTitle>
+ </DropdownMenu.Item>
+ </DropdownMenu.Content>
+ </DropdownMenu.Root>
+ ),
+ }}
+ />
+ <Stack.Screen
+ name="[section]"
+ options={{
+ headerTitle: "Links",
+ headerBackTitle: "Back",
+ headerSearchBarOptions: {
+ placeholder: "Search",
+ autoCapitalize: "none",
+ ...(isIOS26Plus && {
+ allowToolbarIntegration: false,
+ placement: "integratedButton",
+ }),
+ headerIconColor: colorScheme === "dark" ? "white" : "black",
+ onChangeText: (e) => {
+ router.setParams({
+ search: encodeURIComponent(e.nativeEvent.text),
+ });
+ },
+ },
+ }}
+ />
+ </Stack>
+ </TabBarSafeArea>
);
}
diff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsx
index 60e18e11..9e9893e3 100644
--- a/apps/mobile/app/(tabs)/links/_layout.tsx
+++ b/apps/mobile/app/(tabs)/links/_layout.tsx
@@ -2,6 +2,7 @@ import { Stack, useRouter } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
import { Platform } from "react-native";
+import TabBarSafeArea from "@/components/TabBarSafeArea";
export default function Layout() {
const router = useRouter();
@@ -11,46 +12,48 @@ export default function Layout() {
Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;
return (
- <Stack
- screenOptions={{
- headerTitle: "Links",
- headerLargeTitle: true,
- headerTintColor: colorScheme === "dark" ? "white" : "black",
- headerTransparent: Platform.OS === "ios",
- headerSearchBarOptions: {
- placeholder: "Search Links",
- autoCapitalize: "none",
- ...(isIOS26Plus && {
- allowToolbarIntegration: false,
- placement: "integratedButton",
- }),
- onChangeText: (e) => {
- router.setParams({
- search: encodeURIComponent(e.nativeEvent.text),
- });
+ <TabBarSafeArea>
+ <Stack
+ screenOptions={{
+ headerTitle: "Links",
+ headerLargeTitle: true,
+ headerTintColor: colorScheme === "dark" ? "white" : "black",
+ headerTransparent: Platform.OS === "ios",
+ headerSearchBarOptions: {
+ placeholder: "Search Links",
+ autoCapitalize: "none",
+ ...(isIOS26Plus && {
+ allowToolbarIntegration: false,
+ placement: "integratedButton",
+ }),
+ onChangeText: (e) => {
+ router.setParams({
+ search: encodeURIComponent(e.nativeEvent.text),
+ });
+ },
+ headerIconColor: colorScheme === "dark" ? "white" : "black",
},
- headerIconColor: colorScheme === "dark" ? "white" : "black",
- },
- headerShadowVisible: false,
- headerBlurEffect: isIOS26Plus
- ? undefined
- : colorScheme === "dark"
- ? "systemMaterialDark"
- : "systemMaterial",
- headerLargeStyle: {
- backgroundColor: isIOS26Plus
- ? "transparent"
- : rawTheme[colorScheme as ThemeName]["base-100"],
- },
- headerStyle: {
- backgroundColor:
- Platform.OS === "ios"
+ headerShadowVisible: false,
+ headerBlurEffect: isIOS26Plus
+ ? undefined
+ : colorScheme === "dark"
+ ? "systemMaterialDark"
+ : "systemMaterial",
+ headerLargeStyle: {
+ backgroundColor: isIOS26Plus
? "transparent"
- : colorScheme === "dark"
- ? rawTheme["dark"]["base-100"]
- : "white",
- },
- }}
- />
+ : rawTheme[colorScheme as ThemeName]["base-100"],
+ },
+ headerStyle: {
+ backgroundColor:
+ Platform.OS === "ios"
+ ? "transparent"
+ : colorScheme === "dark"
+ ? rawTheme["dark"]["base-100"]
+ : "white",
+ },
+ }}
+ />
+ </TabBarSafeArea>
);
}
diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsx
index 78bfe617..f2ea5807 100644
--- a/apps/mobile/app/(tabs)/settings/_layout.tsx
+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx
@@ -2,6 +2,7 @@ import { Stack, useRouter } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
import { Platform, View } from "react-native";
+import TabBarSafeArea from "@/components/TabBarSafeArea";
export default function Layout() {
const { colorScheme } = useColorScheme();
@@ -12,78 +13,80 @@ export default function Layout() {
const themeBackgroundColor = rawTheme[colorScheme as ThemeName]["base-100"];
return (
- <Stack
- screenOptions={{
- headerTitle: "Settings",
- headerLargeTitle: true,
- headerTintColor: colorScheme === "dark" ? "white" : "black",
- headerShadowVisible: false,
- headerBackTitle: "Back",
- headerBlurEffect: isIOS26Plus
- ? undefined
- : colorScheme === "dark"
- ? "systemMaterialDark"
- : "systemMaterial",
- headerLargeStyle: {
- backgroundColor: isIOS26Plus
- ? "transparent"
- : rawTheme[colorScheme as ThemeName]["base-100"],
- },
- headerStyle: {
- backgroundColor:
- Platform.OS === "ios"
- ? "transparent"
- : colorScheme === "dark"
- ? rawTheme["dark"]["base-100"]
- : "white",
- },
- }}
- >
- <Stack.Screen
- name="index"
- options={{
- headerTransparent: Platform.OS === "ios",
- }}
- />
- <Stack.Screen
- name="preferredCollection"
- options={{
- headerTitle: "Preferred Collection",
- headerLargeTitle: false,
- headerTransparent: Platform.OS === "ios",
+ <TabBarSafeArea>
+ <Stack
+ screenOptions={{
+ headerTitle: "Settings",
+ headerLargeTitle: true,
+ headerTintColor: colorScheme === "dark" ? "white" : "black",
+ headerShadowVisible: false,
+ headerBackTitle: "Back",
headerBlurEffect: isIOS26Plus
? undefined
: colorScheme === "dark"
? "systemMaterialDark"
: "systemMaterial",
- ...(isIOS26Plus
- ? {
- headerBackground: () => (
- <View
- style={{
- flex: 1,
- backgroundColor: themeBackgroundColor,
- }}
- />
- ),
- }
- : {}),
- headerSearchBarOptions: {
- placeholder: "Search Collections",
- autoCapitalize: "none",
- ...(isIOS26Plus && {
- allowToolbarIntegration: false,
- placement: "integratedButton",
- }),
- onChangeText: (e) => {
- router.setParams({
- search: encodeURIComponent(e.nativeEvent.text),
- });
- },
- headerIconColor: colorScheme === "dark" ? "white" : "black",
+ headerLargeStyle: {
+ backgroundColor: isIOS26Plus
+ ? "transparent"
+ : rawTheme[colorScheme as ThemeName]["base-100"],
+ },
+ headerStyle: {
+ backgroundColor:
+ Platform.OS === "ios"
+ ? "transparent"
+ : colorScheme === "dark"
+ ? rawTheme["dark"]["base-100"]
+ : "white",
},
}}
- />
- </Stack>
+ >
+ <Stack.Screen
+ name="index"
+ options={{
+ headerTransparent: Platform.OS === "ios",
+ }}
+ />
+ <Stack.Screen
+ name="preferredCollection"
+ options={{
+ headerTitle: "Preferred Collection",
+ headerLargeTitle: false,
+ headerTransparent: Platform.OS === "ios",
+ headerBlurEffect: isIOS26Plus
+ ? undefined
+ : colorScheme === "dark"
+ ? "systemMaterialDark"
+ : "systemMaterial",
+ ...(isIOS26Plus
+ ? {
+ headerBackground: () => (
+ <View
+ style={{
+ flex: 1,
+ backgroundColor: themeBackgroundColor,
+ }}
+ />
+ ),
+ }
+ : {}),
+ headerSearchBarOptions: {
+ placeholder: "Search Collections",
+ autoCapitalize: "none",
+ ...(isIOS26Plus && {
+ allowToolbarIntegration: false,
+ placement: "integratedButton",
+ }),
+ onChangeText: (e) => {
+ router.setParams({
+ search: encodeURIComponent(e.nativeEvent.text),
+ });
+ },
+ headerIconColor: colorScheme === "dark" ? "white" : "black",
+ },
+ }}
+ />
+ </Stack>
+ </TabBarSafeArea>
);
}
diff --git a/apps/mobile/app/(tabs)/tags/_layout.tsx b/apps/mobile/app/(tabs)/tags/_layout.tsx
index 255dac68..03e84f05 100644
--- a/apps/mobile/app/(tabs)/tags/_layout.tsx
+++ b/apps/mobile/app/(tabs)/tags/_layout.tsx
@@ -2,6 +2,7 @@ import { Stack, useRouter } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
import { Platform } from "react-native";
+import TabBarSafeArea from "@/components/TabBarSafeArea";
export default function Layout() {
const router = useRouter();
@@ -10,46 +11,48 @@ export default function Layout() {
Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;
return (
- <Stack
- screenOptions={{
- headerTitle: "Tags",
- headerLargeTitle: true,
- headerTintColor: colorScheme === "dark" ? "white" : "black",
- headerTransparent: Platform.OS === "ios",
- headerSearchBarOptions: {
- placeholder: "Search Tags",
- autoCapitalize: "none",
- ...(isIOS26Plus && {
- allowToolbarIntegration: false,
- placement: "integratedButton",
- }),
- onChangeText: (e) => {
- router.setParams({
- search: encodeURIComponent(e.nativeEvent.text),
- });
+ <TabBarSafeArea>
+ <Stack
+ screenOptions={{
+ headerTitle: "Tags",
+ headerLargeTitle: true,
+ headerTintColor: colorScheme === "dark" ? "white" : "black",
+ headerTransparent: Platform.OS === "ios",
+ headerSearchBarOptions: {
+ placeholder: "Search Tags",
+ autoCapitalize: "none",
+ ...(isIOS26Plus && {
+ allowToolbarIntegration: false,
+ placement: "integratedButton",
+ }),
+ onChangeText: (e) => {
+ router.setParams({
+ search: encodeURIComponent(e.nativeEvent.text),
+ });
+ },
+ headerIconColor: colorScheme === "dark" ? "white" : "black",
},
- headerIconColor: colorScheme === "dark" ? "white" : "black",
- },
- headerShadowVisible: false,
- headerBlurEffect: isIOS26Plus
- ? undefined
- : colorScheme === "dark"
- ? "systemMaterialDark"
- : "systemMaterial",
- headerLargeStyle: {
- backgroundColor: isIOS26Plus
- ? "transparent"
- : rawTheme[colorScheme as ThemeName]["base-100"],
- },
- headerStyle: {
- backgroundColor:
- Platform.OS === "ios"
+ headerShadowVisible: false,
+ headerBlurEffect: isIOS26Plus
+ ? undefined
+ : colorScheme === "dark"
+ ? "systemMaterialDark"
+ : "systemMaterial",
+ headerLargeStyle: {
+ backgroundColor: isIOS26Plus
? "transparent"
- : colorScheme === "dark"
- ? rawTheme["dark"]["base-100"]
- : "white",
- },
- }}
- />
+ : rawTheme[colorScheme as ThemeName]["base-100"],
+ },
+ headerStyle: {
+ backgroundColor:
+ Platform.OS === "ios"
+ ? "transparent"
+ : colorScheme === "dark"
+ ? rawTheme["dark"]["base-100"]
+ : "white",
+ },
+ }}
+ />
+ </TabBarSafeArea>
);
}
diff --git a/apps/mobile/components/TabBarSafeArea.tsx b/apps/mobile/components/TabBarSafeArea.tsx
new file mode 100644
index 00000000..d1922909
--- /dev/null
+++ b/apps/mobile/components/TabBarSafeArea.tsx
@@ -0,0 +1,17 @@
+import { ReactNode } from "react";
+import { Platform } from "react-native";
+import { SafeAreaView } from "react-native-screens/experimental";
+
+// SDK 54's native tabs don't inset screen content above the tab bar on Android
+// (iOS handles it via contentInsetAdjustmentBehavior). expo-router 55 fixes this
+// upstream with this exact wrapper — remove this component when upgrading to
+// SDK 55, or content gets double-inset. https://github.com/expo/expo/pull/41295
+export default function TabBarSafeArea({ children }: { children: ReactNode }) {
+ if (Platform.OS !== "android") return <>{children}</>;
+
+ return (
+ <SafeAreaView style={{ flex: 1 }} edges={{ bottom: true }}>
+ {children}
+ </SafeAreaView>
+ );
+}