mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Replace some namespace imports * Simplify the controlled component injection * Simplify the batching injection * Simplify the component tree injection
26 lines
812 B
JavaScript
26 lines
812 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import './ReactNativeInjectionShared';
|
|
|
|
import * as ReactFabricComponentTree from './ReactFabricComponentTree';
|
|
import * as EventPluginUtils from 'events/EventPluginUtils';
|
|
import ReactFabricGlobalResponderHandler from './ReactFabricGlobalResponderHandler';
|
|
import ResponderEventPlugin from 'events/ResponderEventPlugin';
|
|
|
|
EventPluginUtils.setComponentTree(
|
|
ReactFabricComponentTree.getFiberCurrentPropsFromNode,
|
|
ReactFabricComponentTree.getInstanceFromNode,
|
|
ReactFabricComponentTree.getNodeFromInstance,
|
|
);
|
|
|
|
ResponderEventPlugin.injection.injectGlobalResponderHandler(
|
|
ReactFabricGlobalResponderHandler,
|
|
);
|