Skip to content

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

allow dialog to be aligned to bottom

ammarahm-eddd99a44ce60c
diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.js
index 0e320097b..0f7b39b5f 100644
--- a/apps/mobile/src/components/Dialog/BaseDialog.js
+++ b/apps/mobile/src/components/Dialog/BaseDialog.js
@@ -20,6 +20,7 @@ const BaseDialog = ({
statusBarTranslucent = true,
transparent,
centered = true,
+ bottom = false,
background = null
}) => {
const [state, dispatch] = useTracked();
@@ -52,7 +53,7 @@ const BaseDialog = ({
style={[
styles.backdrop,
{
- justifyContent: centered ? 'center' : 'flex-start',
+ justifyContent: centered ? 'center' : bottom ? 'flex-end' : 'flex-start',
},
]}>
<TouchableOpacity