Skip to content

Commit 30677e7

Browse files
forrestbiceFacebook Github Bot 7
authored andcommitted
ReactInstanceManager API Updates
Summary: Updating code example with updated method names... `onHostPause` -> `onPause` `onHostResume` -> `onResume` `onHostDestroy` -> `onDestroy` Closes #9217 Differential Revision: D3671267 Pulled By: javache fbshipit-source-id: 007a2b0909fee4495a98c141bd6ac3a564b50c17
1 parent e3c6d8c commit 30677e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/IntegrationWithExistingApps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ protected void onPause() {
651651
super.onPause();
652652

653653
if (mReactInstanceManager != null) {
654-
mReactInstanceManager.onHostPause();
654+
mReactInstanceManager.onPause();
655655
}
656656
}
657657

@@ -660,7 +660,7 @@ protected void onResume() {
660660
super.onResume();
661661

662662
if (mReactInstanceManager != null) {
663-
mReactInstanceManager.onHostResume(this, this);
663+
mReactInstanceManager.onResume(this, this);
664664
}
665665
}
666666

@@ -669,7 +669,7 @@ protected void onDestroy() {
669669
super.onDestroy();
670670

671671
if (mReactInstanceManager != null) {
672-
mReactInstanceManager.onHostDestroy();
672+
mReactInstanceManager.onDestroy();
673673
}
674674
}
675675
```

0 commit comments

Comments
 (0)