diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index a02ba4dbc47..afc13c6a5eb 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -53,7 +53,12 @@ const KeyboardAvoidingView = React.createClass({ propTypes: { ...View.propTypes, behavior: PropTypes.oneOf(['height', 'position', 'padding']), - + + /** + * The style of the content container(View) when behavior is 'position'. + */ + contentContainerStyle: View.propTypes.style, + /** * This is the distance between the top of the user screen and the react native view, * may be non-zero in some use cases. @@ -160,9 +165,11 @@ const KeyboardAvoidingView = React.createClass({ case 'position': const positionStyle = {bottom: this.state.bottom}; + const { contentContainerStyle } = this.props; + return ( - + {children}