mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 14:08:56 -05:00
Merge pull request #3301 from inaturalist/mob-403-feedback-modal-cannot-reopen-after-dismissal-by-swipe
handle dismiss in BottomSheet
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user