diff --git a/src/components/KeyboardAvoidingView/index.tsx b/src/components/KeyboardAvoidingView/index.tsx index 926244e3c6..c29e9e7b5d 100644 --- a/src/components/KeyboardAvoidingView/index.tsx +++ b/src/components/KeyboardAvoidingView/index.tsx @@ -145,12 +145,13 @@ const KeyboardAvoidingView = forwardRef< const translateY = interpolateToRelativeKeyboardHeight(translate.value); const paddingBottom = interpolateToRelativeKeyboardHeight(padding.value); const bottomHeight = enabled ? bottom : 0; + const height = frame.value.height - bottomHeight; switch (behavior) { case "height": - if (!keyboard.isClosed.value) { + if (!keyboard.isClosed.value && height > 0) { return { - height: frame.value.height - bottomHeight, + height, flex: 0, }; }