|
@@ -2,7 +2,6 @@ package com.reactnativenavigation.react;
|
2
|
2
|
|
3
|
3
|
import com.facebook.react.ReactInstanceManager;
|
4
|
4
|
import com.facebook.react.bridge.JavaJSExecutor;
|
5
|
|
-import com.facebook.react.devsupport.DevSupportManager;
|
6
|
5
|
import com.facebook.react.devsupport.ReactInstanceDevCommandsHandler;
|
7
|
6
|
import com.reactnativenavigation.utils.ReflectionUtils;
|
8
|
7
|
|
|
@@ -27,8 +26,7 @@ public class JsDevReloadListenerReplacer {
|
27
|
26
|
}
|
28
|
27
|
|
29
|
28
|
private void replaceInDevSupportManager(DevCommandsHandlerProxy proxy) {
|
30
|
|
- DevSupportManager devSupportManager = (DevSupportManager)
|
31
|
|
- ReflectionUtils.getDeclaredField(reactInstanceManager, "mDevSupportManager");
|
|
29
|
+ Object devSupportManager = ReflectionUtils.getDeclaredField(reactInstanceManager, "mDevSupportManager");
|
32
|
30
|
ReflectionUtils.setField(devSupportManager, "mReactInstanceCommandsHandler", proxy);
|
33
|
31
|
}
|
34
|
32
|
|