Skip to content
TypeScript

fix(mobile): restore QR scanning in iPad pairing sheet (#16019)

Arham Mahajand404a301189b
diff --git a/apps/mobile/src/Stack.tsx b/apps/mobile/src/Stack.tsx
index c089945ccc8..4e3c53268f2 100644
--- a/apps/mobile/src/Stack.tsx
+++ b/apps/mobile/src/Stack.tsx
@@ -905,6 +905,10 @@ const RootStackConfig = createWorkspaceStackNavigator({
screen: ConnectionsNewRouteScreen,
linking: "connections/new",
options: {
+ // Keep the iOS header visible from the first render so the sheet's
+ // native header stack mounts without remounting the pairing form.
+ ...(Platform.OS === "ios" ? SHEET_GLASS_HEADER_OPTIONS : undefined),
+ title: "Add Environment",
...FORM_SHEET_PRESENTATION_OPTIONS,
sheetAllowedDetents: [0.55, 0.7],
sheetGrabberVisible: true,