Skip to content

Commit

Permalink
ReactInstanceManager API Updates
Browse files Browse the repository at this point in the history
Summary:
Updating code example with updated method names...

`onHostPause` -> `onPause`
`onHostResume` -> `onResume`
`onHostDestroy` -> `onDestroy`
Closes facebook#9217

Differential Revision: D3671267

Pulled By: javache

fbshipit-source-id: 007a2b0909fee4495a98c141bd6ac3a564b50c17
  • Loading branch information
forrestbice authored and Morgan Pretty committed Aug 24, 2016
1 parent 86727a5 commit 710766d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/IntegrationWithExistingApps.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ protected void onPause() {
super.onPause();

if (mReactInstanceManager != null) {
mReactInstanceManager.onHostPause();
mReactInstanceManager.onPause();
}
}

Expand All @@ -660,7 +660,7 @@ protected void onResume() {
super.onResume();

if (mReactInstanceManager != null) {
mReactInstanceManager.onHostResume(this, this);
mReactInstanceManager.onResume(this, this);
}
}

Expand All @@ -669,7 +669,7 @@ protected void onDestroy() {
super.onDestroy();

if (mReactInstanceManager != null) {
mReactInstanceManager.onHostDestroy();
mReactInstanceManager.onDestroy();
}
}
```
Expand Down

0 comments on commit 710766d

Please sign in to comment.