From 59c187dae8d884ccafd474be84f83cdbd57061f0 Mon Sep 17 00:00:00 2001 From: SteffeyDev Date: Wed, 17 Apr 2019 09:29:59 -0400 Subject: [PATCH] Fix for android onDismiss --- src/Popover.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Popover.js b/src/Popover.js index 44c6bec..abaa1ba 100644 --- a/src/Popover.js +++ b/src/Popover.js @@ -748,8 +748,8 @@ class Popover extends React.Component { translatePoint: this.getTranslateOrigin(), callback: () => this.setState({visible: false, forcedContentSize: {}}, () => { - // If showing in an RN modal, the onCloseComplete callback will be called from the Modal onDismiss callback - if (this.props.mode !== POPOVER_MODE.RN_MODAL) + // If showing in an RN modal, the onCloseComplete callback will be called from the Modal onDismiss callback (on iOS only) + if (this.props.mode !== POPOVER_MODE.RN_MODAL || !isIOS) this.props.onCloseComplete() }), easing: Easing.inOut(Easing.quad)