Skip to content

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

mobile: do not resize auth modal on ios on kbd open

ammarahm-ed19f2d8b0a775
diff --git a/apps/mobile/app/components/auth/auth-modal.js b/apps/mobile/app/components/auth/auth-modal.js
index abf3d0a0c..2ffc58a5e 100644
--- a/apps/mobile/app/components/auth/auth-modal.js
+++ b/apps/mobile/app/components/auth/auth-modal.js
@@ -84,6 +84,7 @@ const AuthModal = () => {
background={colors.bg}
transparent={false}
animated={false}
+ avoidKeyboardResize
>
{currentAuthMode !== AuthMode.login ? (
<Signup
diff --git a/apps/mobile/app/components/dialog/base-dialog.js b/apps/mobile/app/components/dialog/base-dialog.js
index 2bf19bbba..a5cfabfcc 100644
--- a/apps/mobile/app/components/dialog/base-dialog.js
+++ b/apps/mobile/app/components/dialog/base-dialog.js
@@ -46,7 +46,8 @@ const BaseDialog = ({
animated = true,
bounce = true,
closeOnTouch = true,
- useSafeArea = true
+ useSafeArea = true,
+ avoidKeyboardResize = false
}) => {
const floating = useIsFloatingKeyboard();
@@ -94,7 +95,7 @@ const BaseDialog = ({
}}
>
<KeyboardAvoidingView
- enabled={!floating && Platform.OS === "ios"}
+ enabled={!floating && Platform.OS === "ios" && !avoidKeyboardResize}
behavior="padding"
>
<BouncingView