Skip to content

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

fix incorrect backdrop location on ios

ammarahm-ed3d8564affd59
diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.js
index a294f3c94..b9c8aae3c 100644
--- a/apps/mobile/src/components/Dialog/BaseDialog.js
+++ b/apps/mobile/src/components/Dialog/BaseDialog.js
@@ -38,17 +38,18 @@ const BaseDialog = ({
}}
animationType={animation}
onRequestClose={onRequestClose}>
- <SafeAreaView>
+ <SafeAreaView
+ style={ {
+ backgroundColor: transparent
+ ? 'transparent'
+ : state.colors.night
+ ? 'rgba(255,255,255,0.15)'
+ : 'rgba(0,0,0,0.3)',
+ }}
+ >
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : null}
style={[
- {
- backgroundColor: transparent
- ? 'transparent'
- : state.colors.night
- ? 'rgba(255,255,255,0.15)'
- : 'rgba(0,0,0,0.3)',
- },
styles.backdrop,
{
justifyContent:centered? "center" : "flex-start"