mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
7354ff33b2
Summary:Portal keeps its opened modals as a state member. so if multiple consecutive `_showModal` or `_closeModal` are called, it will only read the initial state and merge the end result, which causes some close or open calls to be overwritten due to race condition. This diff fixes such issue. Reviewed By: dmmiller Differential Revision: D3160561 fb-gh-sync-id: 6d936c795660b119e2d3fe8b3ab807307eca92c5 fbshipit-source-id: 6d936c795660b119e2d3fe8b3ab807307eca92c5