mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-18 07:18:47 +08:00
Fixing method name
This commit is contained in:
@@ -396,7 +396,7 @@ public class CodePush implements ReactPackage {
|
||||
try {
|
||||
// #1) Get the private ReactInstanceManager, which is what includes
|
||||
// the logic to reload the current React context.
|
||||
Field instanceManagerField = ReactActivity.class.getDeclaredField("mReacInstanceManager");
|
||||
Field instanceManagerField = ReactActivity.class.getDeclaredField("mReactInstanceManager");
|
||||
instanceManagerField.setAccessible(true); // Make a private field accessible
|
||||
final Object instanceManager = instanceManagerField.get(mainActivity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user