From d506c948817f43cf9bac59161d3acb32b6c6ae6c Mon Sep 17 00:00:00 2001 From: Roc Wang Date: Fri, 14 Oct 2016 14:23:27 +0800 Subject: [PATCH 1/2] Update Popover.js 1.fix the shadow warning 2. add a press event to background view --- Popover.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Popover.js b/Popover.js index a937b01..8ec09dc 100644 --- a/Popover.js +++ b/Popover.js @@ -37,6 +37,7 @@ var Popover = React.createClass({ propTypes: { isVisible: PropTypes.bool, onClose: PropTypes.func, + onBgPress:PropTypes.func }, getInitialState() { return { @@ -59,6 +60,7 @@ var Popover = React.createClass({ arrowSize: DEFAULT_ARROW_SIZE, placement: 'auto', onClose: noop, + onBgPress:noop }; }, measureContent(x) { @@ -345,7 +347,9 @@ var Popover = React.createClass({ return ( - + + + Date: Thu, 15 Dec 2016 15:49:35 +0800 Subject: [PATCH 2/2] add zindex --- Popover.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Popover.js b/Popover.js index 8ec09dc..c55cf9e 100644 --- a/Popover.js +++ b/Popover.js @@ -375,6 +375,7 @@ var styles = StyleSheet.create({ right: 0, position: 'absolute', backgroundColor: 'transparent', + zIndex:999 }, containerVisible: { opacity: 1,