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