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