mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
update FabricUIManager to call the right JS object
Reviewed By: sebmarkbage Differential Revision: D7037275 fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
This commit is contained in:
committed by
Facebook Github Bot
parent
25b0c374b3
commit
486ac9dc82
@@ -2760,7 +2760,8 @@ var ReactNativeGlobalResponderHandler = {
|
||||
/**
|
||||
* Register the event emitter with the native bridge
|
||||
*/
|
||||
RCTEventEmitter.register(ReactNativeEventEmitter);
|
||||
// TODO: This event emitter is interfering with the existing ReactNative renderer.
|
||||
// RCTEventEmitter.register(ReactNativeEventEmitter);
|
||||
|
||||
/**
|
||||
* Inject module for resolving DOM hierarchy and plugin ordering.
|
||||
|
||||
@@ -1140,7 +1140,8 @@ var ReactNativeEventEmitter = Object.freeze({
|
||||
}
|
||||
}
|
||||
});
|
||||
RCTEventEmitter.register(ReactNativeEventEmitter);
|
||||
// TODO: This event emitter is interfering with the existing ReactNative renderer.
|
||||
// RCTEventEmitter.register(ReactNativeEventEmitter);
|
||||
injection.injectEventPluginOrder([
|
||||
"ResponderEventPlugin",
|
||||
"ReactNativeBridgeEventPlugin"
|
||||
|
||||
32
Libraries/Renderer/shims/ReactFabricInternals.js
Normal file
32
Libraries/Renderer/shims/ReactFabricInternals.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @providesModule ReactFabricInternals
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
} = require('ReactFabric');
|
||||
|
||||
import type {NativeMethodsMixinType} from 'ReactNativeTypes';
|
||||
|
||||
const {
|
||||
NativeMethodsMixin,
|
||||
ReactNativeBridgeEventPlugin,
|
||||
createReactNativeComponentClass,
|
||||
} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
|
||||
module.exports = {
|
||||
NativeMethodsMixin: ((NativeMethodsMixin: any): $Exact<
|
||||
NativeMethodsMixinType,
|
||||
>),
|
||||
ReactNativeBridgeEventPlugin,
|
||||
createReactNativeComponentClass,
|
||||
};
|
||||
Reference in New Issue
Block a user