react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[v2] dismissModal stops calling componentDidDisappear after the first dismissal

Open mahyarr opened this issue 8 years ago • 2 comments

Issue Description

When I dismiss a modal for the first time for a given layout, the componentDidDisappear callback is called the first time but stops getting called on subsequent dismissModal calls for the same layout.

Steps to Reproduce / Code Snippets / Screenshots

1- Show a modal with a component layout 2- dismiss the modal and notice componentDidDisappear does get called. 3- Now show the same component layout as modal again 4- Dismiss the modal.

Notice componentDidDisappear is no longer invoked.


Environment

  • React Native Navigation version: 2.0.2291
  • React Native version: 0.55.4
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone 7p

mahyarr avatar May 17 '18 18:05 mahyarr

Related to #3216

guyca avatar May 18 '18 04:05 guyca

Solved here https://github.com/wix/react-native-navigation/commit/3a282ea24b88513b96d1edce787051a24cdefef4

yogevbd avatar May 21 '18 09:05 yogevbd