diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-11-23 20:59:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 20:59:34 +0000 |
| commit | 5522e20104da6afe2e4667cf45dbbbbc0e838865 (patch) | |
| tree | 72f416fa83c97a8533eea431e25bd63bda1e7d81 /apps/mobile/app/dashboard/(tabs)/index.tsx | |
| parent | 4bb74872fd518008afea16a136292037baf5b024 (diff) | |
| download | karakeep-5522e20104da6afe2e4667cf45dbbbbc0e838865.tar.zst | |
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
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)/index.tsx')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/index.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx index b9ab7d11..f70474a9 100644 --- a/apps/mobile/app/dashboard/(tabs)/index.tsx +++ b/apps/mobile/app/dashboard/(tabs)/index.tsx @@ -1,9 +1,7 @@ -import { useRef } from "react"; import { Platform, Pressable, Text, View } from "react-native"; import * as Haptics from "expo-haptics"; import * as ImagePicker from "expo-image-picker"; import { router } from "expo-router"; -import NoteEditorModal from "@/components/bookmarks/NewBookmarkModal"; import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList"; import { TailwindResolver } from "@/components/TailwindResolver"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; @@ -11,7 +9,6 @@ import PageTitle from "@/components/ui/PageTitle"; import { useToast } from "@/components/ui/Toast"; import useAppSettings from "@/lib/settings"; import { useUploadAsset } from "@/lib/upload"; -import { BottomSheetModal } from "@gorhom/bottom-sheet"; import { MenuView } from "@react-native-menu/menu"; import { Plus, Search } from "lucide-react-native"; @@ -77,11 +74,8 @@ function HeaderRight({ } export default function Home() { - const newBookmarkModal = useRef<BottomSheetModal>(null); - return ( <CustomSafeAreaView> - <NoteEditorModal ref={newBookmarkModal} snapPoints={["90%", "60%"]} /> <UpdatingBookmarkList query={{ archived: false }} header={ @@ -89,7 +83,9 @@ export default function Home() { <View className="flex flex-row justify-between"> <PageTitle title="Home" className="pb-2" /> <HeaderRight - openNewBookmarkModal={() => newBookmarkModal.current?.present()} + openNewBookmarkModal={() => + router.push("/dashboard/bookmarks/new") + } /> </View> <Pressable |
