mirror of
https://github.com/zhigang1992/react-native-popover-view.git
synced 2026-05-12 17:59:04 +08:00
Fix for android onDismiss
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user