From 338fb9713b28fe6d1a2aaf1d53e7440d720c9361 Mon Sep 17 00:00:00 2001
From: lance chant <13349722+lancechant@users.noreply.github.com>
Date: Mon, 1 Jun 2026 12:38:54 +0200
Subject: [PATCH] fix: qr code scanning not working ios (#1619)
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
---
app/(auth)/(tabs)/(home)/settings.tsx | 24 +++++++++++++-----------
components/login/TVAddServerForm.tsx | 4 ++--
utils/pairingService.ts | 1 +
3 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/app/(auth)/(tabs)/(home)/settings.tsx b/app/(auth)/(tabs)/(home)/settings.tsx
index db223b2bf..69b980d3e 100644
--- a/app/(auth)/(tabs)/(home)/settings.tsx
+++ b/app/(auth)/(tabs)/(home)/settings.tsx
@@ -59,17 +59,19 @@ function SettingsMobile() {
-
-
-
- router.push("/(auth)/(tabs)/(home)/companion-login")
- }
- title={t("pairing.pair_with_phone")}
- textColor='blue'
- />
-
-
+ {Platform.OS !== "ios" && (
+
+
+
+ router.push("/(auth)/(tabs)/(home)/companion-login")
+ }
+ title={t("pairing.pair_with_phone")}
+ textColor='blue'
+ />
+
+
+ )}
diff --git a/components/login/TVAddServerForm.tsx b/components/login/TVAddServerForm.tsx
index 8d0168b23..cf38fa54c 100644
--- a/components/login/TVAddServerForm.tsx
+++ b/components/login/TVAddServerForm.tsx
@@ -1,6 +1,6 @@
import { t } from "i18next";
import React, { useCallback, useState } from "react";
-import { ScrollView, View } from "react-native";
+import { Platform, ScrollView, View } from "react-native";
import { Button } from "@/components/Button";
import { Text } from "@/components/common/Text";
import { useScaledTVTypography } from "@/constants/TVTypography";
@@ -107,7 +107,7 @@ export const TVAddServerForm: React.FC = ({
{/* Pair with Phone */}
- {onStartPairing && (
+ {Platform.OS !== "ios" && onStartPairing && (