-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unloadApp method to ReactDelegate (#46424)
Summary: Pull Request resolved: #46424 It's not isomorphic for `ReactDelegate` to have a `loadApp` method to initialize a surface, but only allow unloading of a surface by calling `onHostDestroy`, which also destroys the ReactHost. This change adds an `unloadApp` method to `ReactDelegate` so it can be used in, e.g., `ReactFragment` to stop a surface without tearing down the host. ## Changelog [Android][Added] ReactDelegate `unloadApp` methods for unmounting surfaces without destroying ReactHost Reviewed By: mdvacca Differential Revision: D62448543 fbshipit-source-id: e99b880f48e857935ee856c37b881bcc8bd22ad0
- Loading branch information
1 parent
cbddcfc
commit 38593c4
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters