updating android docs to use the right methods in code snippets
Summary: - Updating code snippets in the android integration docs which use methods that no longer exist in the [ReactInstanceManager](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java) class Closes https://github.com/facebook/react-native/pull/11070 Differential Revision: D4220830 Pulled By: JoelMarcey fbshipit-source-id: 0dfc49accc27feb42ac31fb50c887736e652ec1b
This commit is contained in:
parent
aa85408f56
commit
db20b97dfb
|
@ -675,7 +675,7 @@ protected void onPause() {
|
|||
super.onPause();
|
||||
|
||||
if (mReactInstanceManager != null) {
|
||||
mReactInstanceManager.onPause(this);
|
||||
mReactInstanceManager.onHostPause(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -684,7 +684,7 @@ protected void onResume() {
|
|||
super.onResume();
|
||||
|
||||
if (mReactInstanceManager != null) {
|
||||
mReactInstanceManager.onResume(this, this);
|
||||
mReactInstanceManager.onHostResume(this, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -693,7 +693,7 @@ protected void onDestroy() {
|
|||
super.onDestroy();
|
||||
|
||||
if (mReactInstanceManager != null) {
|
||||
mReactInstanceManager.onDestroy();
|
||||
mReactInstanceManager.onHostDestroy();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue