ReactInstanceManager API Updates

Summary:
Updating code example with updated method names...

`onHostPause` -> `onPause`
`onHostResume` -> `onResume`
`onHostDestroy` -> `onDestroy`
Closes https://github.com/facebook/react-native/pull/9217

Differential Revision: D3671267

Pulled By: javache

fbshipit-source-id: 007a2b0909fee4495a98c141bd6ac3a564b50c17
This commit is contained in:
Forrest Bice 2016-08-04 13:07:23 -07:00 committed by Facebook Github Bot 7
parent e3c6d8c931
commit 30677e7193

View File

@ -651,7 +651,7 @@ protected void onPause() {
super.onPause(); super.onPause();
if (mReactInstanceManager != null) { if (mReactInstanceManager != null) {
mReactInstanceManager.onHostPause(); mReactInstanceManager.onPause();
} }
} }
@ -660,7 +660,7 @@ protected void onResume() {
super.onResume(); super.onResume();
if (mReactInstanceManager != null) { if (mReactInstanceManager != null) {
mReactInstanceManager.onHostResume(this, this); mReactInstanceManager.onResume(this, this);
} }
} }
@ -669,7 +669,7 @@ protected void onDestroy() {
super.onDestroy(); super.onDestroy();
if (mReactInstanceManager != null) { if (mReactInstanceManager != null) {
mReactInstanceManager.onHostDestroy(); mReactInstanceManager.onDestroy();
} }
} }
``` ```