Federico Diaz
Federico Diaz

Reputation: 11

Modal prop onDismiss on Android

I was looking to an alternative to the onDismiss prop on Modal, which itsnt supported on Android. I need to trigger a function as soon as it fully closes

    <CustomModal
      title={titleModal}
      openModal={openModal}
      onDismiss={this.setValueWhenClosed}
      closeOutside
    >

Upvotes: 1

Views: 1363

Answers (1)

Ali Bakhtiar
Ali Bakhtiar

Reputation: 178

I think the best choice will be using react-native-modal then you can use onModalHide porps to understand if modal has been hidden.

Upvotes: 1

Related Questions