diff --git a/components/ui/BottomSheet.tsx b/components/ui/BottomSheet.tsx index 815b53d..b8f87ba 100644 --- a/components/ui/BottomSheet.tsx +++ b/components/ui/BottomSheet.tsx @@ -1,5 +1,6 @@ import React from "react"; import { Modal, Pressable, Text, View } from "react-native"; +import Animated, { SlideInDown } from "react-native-reanimated"; import { useTranslation } from "react-i18next"; import { cn } from "~/lib/utils"; @@ -20,10 +21,14 @@ export function BottomSheet({ }: BottomSheetProps) { const { t } = useTranslation(); return ( + // animationType="fade" cross-fades the dimmed backdrop on open/close; the + // panel additionally springs up from the bottom via reanimated, so it + // arrives with the soft physical rise top-tier sheets use rather than a + // flat OS slide. onOpenChange(false)} > onOpenChange(false)} /> - + ); }