ReactNativeInjection.js — react Source File
Architecture documentation for ReactNativeInjection.js, a javascript file in the react codebase. 9 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87["ReactNativeInjection.js"] f7a9d9bb_c840_a894_8211_44aed0d8bb24["ReactNativeInjectionShared.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> f7a9d9bb_c840_a894_8211_44aed0d8bb24 6558eedc_539e_2a0a_77c0_574f399b3f4a["ReactNativeComponentTree.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 6558eedc_539e_2a0a_77c0_574f399b3f4a 651734e2_7996_4c08_0438_f091be1fa1ba["getFiberCurrentPropsFromNode"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 651734e2_7996_4c08_0438_f091be1fa1ba c47175ea_4123_c4e5_c30d_de7506f00f3a["EventPluginUtils.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> c47175ea_4123_c4e5_c30d_de7506f00f3a 2c154aa6_4492_701a_4e76_7203b0b6699c["setComponentTree"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 2c154aa6_4492_701a_4e76_7203b0b6699c baab5855_112a_37e6_6ca7_0813fd6ae027["ReactNativeEventEmitter.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> baab5855_112a_37e6_6ca7_0813fd6ae027 6095ade4_1531_83bf_ef5d_79bc0cd0f450["ReactNativeGlobalResponderHandler.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 6095ade4_1531_83bf_ef5d_79bc0cd0f450 674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 674c6180_b91e_e17d_fb2d_40a6a3631bb3 94a68304_3047_524d_e604_af34f5a80eaf["ReactNativePrivateInterface"] dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 94a68304_3047_524d_e604_af34f5a80eaf 05ccf719_9df5_4e38_01ba_8eadf09bacc1["ReactNativeRenderer.js"] 05ccf719_9df5_4e38_01ba_8eadf09bacc1 --> dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 style dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 {
getFiberCurrentPropsFromNode,
getInstanceFromNode,
getNodeFromInstance,
} from './ReactNativeComponentTree';
import {setComponentTree} from './legacy-events/EventPluginUtils';
import {receiveEvent, receiveTouches} from './ReactNativeEventEmitter';
import ReactNativeGlobalResponderHandler from './ReactNativeGlobalResponderHandler';
import ResponderEventPlugin from './legacy-events/ResponderEventPlugin';
// Module provided by RN:
import {RCTEventEmitter} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
/**
* Register the event emitter with the native bridge
*/
RCTEventEmitter.register({
receiveEvent,
receiveTouches,
});
setComponentTree(
getFiberCurrentPropsFromNode,
getInstanceFromNode,
getNodeFromInstance,
);
ResponderEventPlugin.injection.injectGlobalResponderHandler(
ReactNativeGlobalResponderHandler,
);
Domain
Dependencies
Source
Frequently Asked Questions
What does ReactNativeInjection.js do?
ReactNativeInjection.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactNativeInjection.js depend on?
ReactNativeInjection.js imports 9 module(s): EventPluginUtils.js, ReactNativeComponentTree.js, ReactNativeEventEmitter.js, ReactNativeGlobalResponderHandler.js, ReactNativeInjectionShared.js, ReactNativePrivateInterface, ResponderEventPlugin.js, getFiberCurrentPropsFromNode, and 1 more.
What files import ReactNativeInjection.js?
ReactNativeInjection.js is imported by 1 file(s): ReactNativeRenderer.js.
Where is ReactNativeInjection.js in the architecture?
ReactNativeInjection.js is located at packages/react-native-renderer/src/ReactNativeInjection.js (domain: BabelCompiler, directory: packages/react-native-renderer/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free