mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
mobile: do not resize auth modal on ios on kbd open
This commit is contained in:
@@ -84,6 +84,7 @@ const AuthModal = () => {
|
||||
background={colors.bg}
|
||||
transparent={false}
|
||||
animated={false}
|
||||
avoidKeyboardResize
|
||||
>
|
||||
{currentAuthMode !== AuthMode.login ? (
|
||||
<Signup
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user