Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for multi-root apps with Modal (facebook#46867)
Summary: In multi-root Android React Native apps (e.g., multiple ReactFragments), if the following sequence occurs: 1. a Modal is displayed via the secondary root 2. the secondary root is destroyed 3. the app is backgrounded 4. the app is foregrounded The LifecycleEventListener on the ReactModalHostView will fire, causing the Modal to be rehydrated in the onHostResume callback. Removing the lifecycle event listener when the modal is detached from the window resolves the issue. ## Changelog [Android][Fix] Fix issues with Modals and lifecycle events in multi-surface apps Differential Revision: D64001103
- Loading branch information