update FabricUIManager to call the right JS object

Reviewed By: sebmarkbage

Differential Revision: D7037275

fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
This commit is contained in:
Kevin Gozali
2018-02-23 16:46:06 -08:00
committed by Facebook Github Bot
parent 25b0c374b3
commit 486ac9dc82
9 changed files with 408 additions and 35 deletions

View File

@@ -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.

View File

@@ -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"

View 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,
};