From 37a5e87f0bf1a1543f7a01373e1b34ab7b7e3f0f Mon Sep 17 00:00:00 2001 From: KonstantinPythonLab <334124317+KonstantinPythonLab@users.noreply.github.com> Date: Sat, 24 Oct 2026 08:05:39 +0000 Subject: [PATCH] fix: resolve input visibility and cursor shift in landscape mode on Android --- .../KeyboardAvoidingView/index.android.js | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/components/KeyboardAvoidingView/index.android.js diff --git a/src/components/KeyboardAvoidingView/index.android.js b/src/components/KeyboardAvoidingView/index.android.js new file mode 100644 index 000000000000..b58fb4e759a6 --- /dev/null +++ b/src/components/KeyboardAvoidingView/index.android.js @@ -0,0 +1,31 @@ +import React from 'react'; +import {KeyboardAvoidingView as RNKeyboardAvoidingView} from 'react-native'; +import PropTypes from 'prop-types'; + +/** + * Android-specific KeyboardAvoidingView to handle landscape layout shifts + * and ensure inputs remain visible when the keyboard is active. + */ +function KeyboardAvoidingView({children, style, ...props}) { + return ( + + {children} + + ); +} + +KeyboardAvoidingView.propTypes = { + children: PropTypes.node.isRequired, + style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]), +}; + +KeyboardAvoidingView.defaultProps = { + style: {}, +}; + +export default KeyboardAvoidingView; \ No newline at end of file