Java 类com.facebook.react.devsupport.ReactInstanceDevCommandsHandler 实例源码

项目:react-native-navigation    文件:JsDevReloadListenerReplacer.java   
void replace() {
    ReactInstanceDevCommandsHandler originalHandler = getOriginalHandler();
    DevCommandsHandlerProxy proxy = new DevCommandsHandlerProxy(originalHandler, listener);
    replaceInReactInstanceManager(proxy);
    replaceInDevSupportManager(proxy);
}
项目:react-native-navigation    文件:JsDevReloadListenerReplacer.java   
private ReactInstanceDevCommandsHandler getOriginalHandler() {
    return (ReactInstanceDevCommandsHandler) ReflectionUtils.getDeclaredField(reactInstanceManager, "mDevInterface");
}
项目:react-native-navigation    文件:JsDevReloadListenerReplacer.java   
DevCommandsHandlerProxy(ReactInstanceDevCommandsHandler originalReactHandler, Listener listener) {
    this.originalReactHandler = originalReactHandler;
    this.listener = listener;
}