From 998d68d36d08a7daaf8c80dbe5a0fdc4a8652c3e Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Thu, 17 Mar 2016 08:51:58 -0700 Subject: [PATCH] Add Android support for Modal Summary:This adds support for Modal.js on Android. I added the ModalExample to UIExplorer to demonstrate the usage. Reviewed By: andreicoman11 Differential Revision: D3053732 fb-gh-sync-id: 292173bdd5cb518e87cbb1d622af436704bb6329 shipit-source-id: 292173bdd5cb518e87cbb1d622af436704bb6329 --- Libraries/Modal/Modal.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index 318171e3d..bb1fa8f44 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -48,7 +48,7 @@ class Modal extends React.Component { @@ -63,7 +63,7 @@ Modal.propTypes = { animated: PropTypes.bool, transparent: PropTypes.bool, visible: PropTypes.bool, - onDismiss: PropTypes.func, + onRequestClose: PropTypes.func, onShow: PropTypes.func, }; @@ -76,8 +76,10 @@ var styles = StyleSheet.create({ position: 'absolute', }, container: { - left: 0, position: 'absolute', + bottom: 0, + left: 0, + right: 0, top: 0, } });