Update activity lifecycle callback example

Summary:
Updates the documentation for the the android life cycle methods, recent changes has deprecated

 `onHostPause()` for `onHostPause(Activity activity)`
 `onHostDestroy()` for `onHostDestroy(Activity activity)`

[deprecation commit](0b5c61250b)
Closes https://github.com/facebook/react-native/pull/10460

Differential Revision: D4044420

Pulled By: JoelMarcey

fbshipit-source-id: 54c5fc8fcd332235b6c0237a180e0c5bb2310a20
This commit is contained in:
Christoffer Bo Petersen 2016-10-19 09:29:56 -07:00 committed by Facebook Github Bot
parent aee52eb148
commit 5d97f6df15
1 changed files with 2 additions and 2 deletions

View File

@ -667,7 +667,7 @@ protected void onPause() {
super.onPause();
if (mReactInstanceManager != null) {
mReactInstanceManager.onPause();
mReactInstanceManager.onPause(this);
}
}
@ -685,7 +685,7 @@ protected void onDestroy() {
super.onDestroy();
if (mReactInstanceManager != null) {
mReactInstanceManager.onDestroy();
mReactInstanceManager.onDestroy(this);
}
}
```