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

This commit is contained in:
ammarahm-ed
2023-06-07 21:00:53 +05:00
parent 8c9d98ab88
commit 19f2d8b0a7
2 changed files with 4 additions and 2 deletions

View File

@@ -84,6 +84,7 @@ const AuthModal = () => {
background={colors.bg}
transparent={false}
animated={false}
avoidKeyboardResize
>
{currentAuthMode !== AuthMode.login ? (
<Signup

View File

@@ -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