Fix for android onDismiss

This commit is contained in:
SteffeyDev
2019-04-17 09:29:59 -04:00
parent d2a30eaed5
commit 59c187dae8

View File

@@ -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)