From a43d375f55ff3523450001b4dbcf34808519dfb9 Mon Sep 17 00:00:00 2001
From: sergio <33748103+colado@users.noreply.github.com>
Date: Tue, 30 Dec 2025 11:07:22 +0200
Subject: fix(mobile): mobile modal UI issues (#2320)
* fix(mobile): Make list type selector visible on Android
* fix(mobile): Add native iOS overlay on Toast
---
apps/mobile/components/ui/Toast.tsx | 49 +++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 19 deletions(-)
(limited to 'apps/mobile/components/ui')
diff --git a/apps/mobile/components/ui/Toast.tsx b/apps/mobile/components/ui/Toast.tsx
index fd122c25..96323263 100644
--- a/apps/mobile/components/ui/Toast.tsx
+++ b/apps/mobile/components/ui/Toast.tsx
@@ -1,5 +1,6 @@
import { createContext, useContext, useEffect, useRef, useState } from "react";
-import { Animated, View } from "react-native";
+import { Animated, Platform, View } from "react-native";
+import { FullWindowOverlay } from "react-native-screens";
import { Text } from "@/components/ui/Text";
import { cn } from "@/lib/utils";
@@ -147,27 +148,37 @@ function ToastProvider({
setMessages((prev) => prev.filter((message) => message.id !== id));
};
+ const content = (
+
+ {messages.map((message) => (
+
+ ))}
+
+ );
+
return (
{children}
-
- {messages.map((message) => (
-
- ))}
-
+ {/* Use FullWindowOverlay on iOS to ensure toasts appear above all content */}
+ {/* Platform specific implementation due to FullWindowOverlay being iOS-only */}
+ {Platform.OS === "ios" ? (
+ {content}
+ ) : (
+ content
+ )}
);
}
--
cgit v1.2.3-70-g09d2