From 5522e20104da6afe2e4667cf45dbbbbc0e838865 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 23 Nov 2024 20:59:34 +0000 Subject: ui(mobile): Replace bottom sheet with native screens (#690) * Remove bottom sheet from bookmark info page * Remove bottom sheet from manage lists page * Remove bottom sheet from new list page * Remove bottom sheet from new bookmark page * Drop bottom-sheets * Improve the look of the modals * Make the search page fade from bottom --- apps/mobile/app/sharing.tsx | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'apps/mobile/app/sharing.tsx') diff --git a/apps/mobile/app/sharing.tsx b/apps/mobile/app/sharing.tsx index ee7bd609..e41535b7 100644 --- a/apps/mobile/app/sharing.tsx +++ b/apps/mobile/app/sharing.tsx @@ -1,13 +1,11 @@ -import { useEffect, useRef, useState } from "react"; -import { ActivityIndicator, Text, View } from "react-native"; +import { useEffect, useState } from "react"; +import { ActivityIndicator, Pressable, Text, View } from "react-native"; import { useRouter } from "expo-router"; import { useShareIntentContext } from "expo-share-intent"; -import ListPickerModal from "@/components/bookmarks/ListPickerModal"; import { Button } from "@/components/ui/Button"; import useAppSettings from "@/lib/settings"; import { api } from "@/lib/trpc"; import { useUploadAsset } from "@/lib/upload"; -import { BottomSheetModal } from "@gorhom/bottom-sheet"; import { z } from "zod"; import { BookmarkTypes, ZBookmark } from "@hoarder/shared/types/bookmarks"; @@ -84,7 +82,6 @@ export default function Sharing() { const [mode, setMode] = useState({ type: "idle" }); let autoCloseTimeoutId: NodeJS.Timeout | null = null; - const addToListSheetRef = useRef(null); let comp; switch (mode.type) { @@ -96,24 +93,23 @@ export default function Sharing() { case "success": { comp = ( - router.replace("dashboard")} - /> {mode.type === "alreadyExists" ? "Already Hoarded!" : "Hoarded!"}