Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add bottom padding on ios in action sheet

ammarahm-ed6cd2d08f59e2
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
index 224406efe..d1d77fb71 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
@@ -73,6 +73,7 @@ const ActionSheetWrapper = ({
: hexToRGBA(colors.shade)
}
onOpen={_onOpen}
+ keyboardDismissMode="none"
keyboardShouldPersistTaps="always"
ExtraOverlayComponent={
<>
@@ -87,7 +88,7 @@ const ActionSheetWrapper = ({
onClose={_onClose}>
<BouncingView>
{children}
- <View style={{height: Platform.OS === 'ios' ? insets.bottom / 2 : 20}} />
+ <View style={{height: Platform.OS === 'ios' && insets.bottom !== 0 ? insets.bottom / 2 : 20}} />
</BouncingView>
</ActionSheet>
);