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/app/dashboard/lists/new.tsx | 30 ++++++++++---------- apps/mobile/components/ui/Toast.tsx | 49 ++++++++++++++++++++------------- 2 files changed, 46 insertions(+), 33 deletions(-) (limited to 'apps') diff --git a/apps/mobile/app/dashboard/lists/new.tsx b/apps/mobile/app/dashboard/lists/new.tsx index af51ed15..bada46f2 100644 --- a/apps/mobile/app/dashboard/lists/new.tsx +++ b/apps/mobile/app/dashboard/lists/new.tsx @@ -66,20 +66,22 @@ const NewListPage = () => { List Type - - + + + + + + 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