diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 064d6481cf8434..01be272a82a289 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -89,6 +89,16 @@ class Modal extends React.Component { * - `none` appears without an animation */ animationType: PropTypes.oneOf(['none', 'slide', 'fade']), + /** + * The `softInputMode` prop controls soft input mode for the modal window. + * + * - `unspecified` The system will try to pick a mode, `resize` or `pan`. + * - `resize` Window is resized when an input method is shown. This mode is ignored if the window is fullscreen. + * - `pan` Window is panned to ensure the current input focus is visible. + * - `nothing` Window is neither resized nor panned when an input method is shown. + * @platform android + */ + softInputMode: PropTypes.oneOf(['unspecified', 'resize', 'pan', 'nothing']), /** * The `transparent` prop determines whether your modal will fill the entire view. Setting this to `true` will render the modal over a transparent background. */ @@ -132,6 +142,7 @@ class Modal extends React.Component { static defaultProps = { visible: true, hardwareAccelerated: false, + softInputMode: 'resize', }; static contextTypes = { @@ -165,6 +176,7 @@ class Modal extends React.Component { return (