-
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 protected constructor to decouple ReactFragment lifecycle events …
…from ReactHost (#46425) Summary: Pull Request resolved: #46425 It's entirely plausible that one would want to run a ReactFragment that does not tear down the ReactHost when it is destroyed. This adds a protected constructor that can be used to disable host lifecycle events in a ReactFragment. When disabled, the `onDestroy` method of the ReactFragment simply stops the surface attached to it using `ReactDelegate.unloadApp`. ## Changelog [Android][Added] Flag in ReactFragment to allow unmounting a surface without destroying ReactHost. Reviewed By: philIip Differential Revision: D62449779 fbshipit-source-id: a443ed004ced45e0adc95bd43b36d1b80f9f392f
- Loading branch information
1 parent
cf8d09b
commit bb3ec4d
Showing
2 changed files
with
22 additions
and
3 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