-
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.
Reviewed By: astreet Differential Revision: D2937867 fb-gh-sync-id: cdda79929fa5993b6ef159aa73922909017c2ded shipit-source-id: cdda79929fa5993b6ef159aa73922909017c2ded
- Loading branch information
Showing
7 changed files
with
123 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* RESUMED | ||
*/ | ||
public enum LifecycleState { | ||
|
||
BEFORE_CREATE, | ||
BEFORE_RESUME, | ||
RESUMED, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,7 @@ protected void onPause() { | |
mLifecycleState = LifecycleState.BEFORE_RESUME; | ||
|
||
if (mReactInstanceManager != null) { | ||
mReactInstanceManager.onPause(); | ||
mReactInstanceManager.onHostPause(); | ||
} | ||
} | ||
|
||
|
@@ -161,7 +161,7 @@ protected void onResume() { | |
mLifecycleState = LifecycleState.RESUMED; | ||
|
||
if (mReactInstanceManager != null) { | ||
mReactInstanceManager.onResume(this, this); | ||
mReactInstanceManager.onHostResume(this, this); | ||
} | ||
} | ||
|
||
|
@@ -170,7 +170,7 @@ protected void onDestroy() { | |
super.onDestroy(); | ||
|
||
if (mReactInstanceManager != null) { | ||
mReactInstanceManager.onDestroy(); | ||
mReactInstanceManager.destroy(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
foghina
Author
Contributor
|
||
} | ||
} | ||
|
||
|
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
Oops, something went wrong.
Call
mReactInstanceManager.onHostDestroy()
?