⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
fix: update iOS version check to use parseInt for consistency
daniel31x135bc293cd9468
diff --git a/apps/mobile/app/(tabs)/collections/[id].tsx b/apps/mobile/app/(tabs)/collections/[id].tsxindex fbf31793..194e32ba 100644--- a/apps/mobile/app/(tabs)/collections/[id].tsx+++ b/apps/mobile/app/(tabs)/collections/[id].tsx@@ -25,7 +25,9 @@ export default function LinksScreen() {const collections = useCollections(auth);const navigation = useNavigation();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;++ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;useEffect(() => {const activeCollection = collections.data?.filter(diff --git a/apps/mobile/app/(tabs)/collections/_layout.tsx b/apps/mobile/app/(tabs)/collections/_layout.tsxindex 2911d2b0..b5fb50e7 100644--- a/apps/mobile/app/(tabs)/collections/_layout.tsx+++ b/apps/mobile/app/(tabs)/collections/_layout.tsx@@ -7,7 +7,8 @@ export default function Layout() {const router = useRouter();const { colorScheme } = useColorScheme();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;return (<Stackdiff --git a/apps/mobile/app/(tabs)/dashboard/[section].tsx b/apps/mobile/app/(tabs)/dashboard/[section].tsxindex c9d18e76..d8997d28 100644--- a/apps/mobile/app/(tabs)/dashboard/[section].tsx+++ b/apps/mobile/app/(tabs)/dashboard/[section].tsx@@ -16,7 +16,8 @@ export default function LinksScreen() {const navigation = useNavigation();const collections = useCollections(auth);- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;const title = useMemo(() => {if (section === "pinned-links") return "Pinned Links";diff --git a/apps/mobile/app/(tabs)/dashboard/_layout.tsx b/apps/mobile/app/(tabs)/dashboard/_layout.tsxindex 2fd08229..55277815 100644--- a/apps/mobile/app/(tabs)/dashboard/_layout.tsx+++ b/apps/mobile/app/(tabs)/dashboard/_layout.tsx@@ -10,7 +10,8 @@ export default function Layout() {const router = useRouter();const { colorScheme } = useColorScheme();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;return (<Stackdiff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsxindex a3631d4e..d03f3228 100644--- a/apps/mobile/app/(tabs)/links/_layout.tsx+++ b/apps/mobile/app/(tabs)/links/_layout.tsx@@ -7,7 +7,8 @@ export default function Layout() {const router = useRouter();const { colorScheme } = useColorScheme();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;return (<Stackdiff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsxindex 1571f15e..4831d900 100644--- a/apps/mobile/app/(tabs)/settings/_layout.tsx+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx@@ -6,7 +6,8 @@ import { Platform, View } from "react-native";export default function Layout() {const { colorScheme } = useColorScheme();const router = useRouter();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;const themeBackgroundColor = rawTheme[colorScheme as ThemeName]["base-100"];diff --git a/apps/mobile/app/(tabs)/tags/[id].tsx b/apps/mobile/app/(tabs)/tags/[id].tsxindex 9400b7a4..c2dba6d4 100644--- a/apps/mobile/app/(tabs)/tags/[id].tsx+++ b/apps/mobile/app/(tabs)/tags/[id].tsx@@ -28,7 +28,8 @@ export default function LinksScreen() {const tag = useTag(tagId, auth);const navigation = useNavigation();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;useEffect(() => {if (tag.data?.name)diff --git a/apps/mobile/app/(tabs)/tags/_layout.tsx b/apps/mobile/app/(tabs)/tags/_layout.tsxindex 0fd9ee99..66ac23e2 100644--- a/apps/mobile/app/(tabs)/tags/_layout.tsx+++ b/apps/mobile/app/(tabs)/tags/_layout.tsx@@ -6,7 +6,8 @@ import { Platform } from "react-native";export default function Layout() {const router = useRouter();const { colorScheme } = useColorScheme();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;return (<Stackdiff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsxindex 26416186..3db01d09 100644--- a/apps/mobile/app/_layout.tsx+++ b/apps/mobile/app/_layout.tsx@@ -133,7 +133,8 @@ const RootComponent = ({const { tmp } = useTmpStore();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;+ const isIOS26Plus =+ Platform.OS === "ios" && parseInt(Platform.Version, 10) >= 26;return (<KeyboardProvider>