React-native-navigation: [V2] Event on dismissModal

Created on 24 Jan 2019  ·  2Comments  ·  Source: wix/react-native-navigation

I have opened a model within the screen using Navigation.showModal(....), now i want to watch for that modal dismiss in that same screen. I have checked the doc and can't find any suitable event, can any one help me with that.

Environment

  • React Native Navigation version: ^2.1.3
  • React Native version: 0.57.7
  • Platform(s) (iOS, Android, or both?): both
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator/Device
questiostack overflow

Most helpful comment

Since it's not documented, I thought the event is not available. Finally found that event

Navigation.events().registerModalDismissedListener(({ componentId, modalsDismissed }) => {

});

All 2 comments

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.

Since it's not documented, I thought the event is not available. Finally found that event

Navigation.events().registerModalDismissedListener(({ componentId, modalsDismissed }) => {

});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

viper4595 picture viper4595  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

henrikra picture henrikra  ·  3Comments

tmaly1980 picture tmaly1980  ·  3Comments

nbolender picture nbolender  ·  3Comments