handle dismiss in BottomSheet

This commit is contained in:
Abbey Campbell
2025-12-16 16:00:29 -08:00
parent 8780543f07
commit ff707b97f3

View File

@@ -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}
>
<BottomSheetScrollView
keyboardShouldPersistTaps={keyboardShouldPersistTaps}