Skip to content

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

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].tsx
index 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.tsx
index 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 (
<Stack
diff --git a/apps/mobile/app/(tabs)/dashboard/[section].tsx b/apps/mobile/app/(tabs)/dashboard/[section].tsx
index 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.tsx
index 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 (
<Stack
diff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsx
index 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 (
<Stack
diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsx
index 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].tsx
index 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.tsx
index 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 (
<Stack
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx
index 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>