Fix and update Android documentation (Integrating with existing app section)

Summary:
Android documentation was not updated accordingly following a native Android API surface modification which ended up renaming a couple of methods  (introduced in 19a1c4c229)

This PR is fixing the documentation while at the same time updating the documentation in the same section adding another method which was introduced in the same commit and which needs to be called as well (please see comment in [ReactInstanceManager.java](5b871ad9d7/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java (L44)) : `It's required to pass owning activity's lifecycle events to the instance manager [...]`)
Closes https://github.com/facebook/react-native/pull/8032

Differential Revision: D3424674

fbshipit-source-id: 867f98ef210d7e9402afc278fb7b8e08890de3f0
This commit is contained in:
Benoit Lemaire 2016-06-13 07:30:58 -07:00 коммит произвёл Facebook Github Bot 3
Родитель 933e17949b
Коммит 86ab55328b
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -83,7 +83,7 @@ protected void onPause() {
super.onPause(); super.onPause();
if (mReactInstanceManager != null) { if (mReactInstanceManager != null) {
mReactInstanceManager.onPause(); mReactInstanceManager.onHostPause();
} }
} }
@ -92,7 +92,16 @@ protected void onResume() {
super.onResume(); super.onResume();
if (mReactInstanceManager != null) { if (mReactInstanceManager != null) {
mReactInstanceManager.onResume(this, this); mReactInstanceManager.onHostResume(this, this);
}
}
@Override
protected void onDestroy() {
super.onDestroy();
if (mReactInstanceManager != null) {
mReactInstanceManager.onHostDestroy();
} }
} }
``` ```