mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 22:43:10 +08:00
destroy react instance on background critical memory pressure
Reviewed By: astreet Differential Revision: D2989125 fb-gh-sync-id: 0e441409d6b0ea7d5ff6a037730cc1c36818a2da shipit-source-id: 0e441409d6b0ea7d5ff6a037730cc1c36818a2da
This commit is contained in:
committed by
Facebook Github Bot 6
parent
4b52d185ac
commit
2e4bb5364d
@@ -62,6 +62,8 @@ public abstract class ReactInstanceManager {
|
||||
|
||||
public abstract DevSupportManager getDevSupportManager();
|
||||
|
||||
public abstract MemoryPressureRouter getMemoryPressureRouter();
|
||||
|
||||
/**
|
||||
* Trigger react context initialization asynchronously in a background async task. This enables
|
||||
* applications to pre-load the application JS, and execute global code before
|
||||
@@ -159,6 +161,8 @@ public abstract class ReactInstanceManager {
|
||||
@VisibleForTesting
|
||||
public abstract @Nullable ReactContext getCurrentReactContext();
|
||||
|
||||
public abstract LifecycleState getLifecycleState();
|
||||
|
||||
/**
|
||||
* Creates a builder that is capable of creating an instance of {@link ReactInstanceManagerImpl}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user