From ff707b97f35587ccb3f7613788e7107bee04059e Mon Sep 17 00:00:00 2001 From: Abbey Campbell Date: Tue, 16 Dec 2025 16:00:29 -0800 Subject: [PATCH] handle dismiss in BottomSheet --- src/components/SharedComponents/Sheets/BottomSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SharedComponents/Sheets/BottomSheet.tsx b/src/components/SharedComponents/Sheets/BottomSheet.tsx index a7c69e431..38662fbae 100644 --- a/src/components/SharedComponents/Sheets/BottomSheet.tsx +++ b/src/components/SharedComponents/Sheets/BottomSheet.tsx @@ -67,7 +67,7 @@ const StandardBottomSheet = ( { const insets = useSafeAreaInsets( ); const handleClose = useCallback( ( ) => { - onPressClose( ); + if ( onPressClose ) onPressClose( ); if ( insideModal ) { sheetRef.current?.collapse( ); @@ -113,6 +113,7 @@ const StandardBottomSheet = ( { ref={sheetRef} style={marginOnWide} accessible={false} + onDismiss={handleClose} >