Home / File/ PluginModuleType.js — react Source File

PluginModuleType.js — react Source File

Architecture documentation for PluginModuleType.js, a javascript file in the react codebase. 3 imports, 4 dependents.

File javascript BabelCompiler 3 imports 4 dependents

Entity Profile

Dependency Diagram

graph LR
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f["PluginModuleType.js"]
  b2f450b6_f67a_153d_5efb_a03735431450["ReactSyntheticEventType.js"]
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f --> b2f450b6_f67a_153d_5efb_a03735431450
  304edd67_bb4f_7b82_bbee_3b770742ef97["TopLevelEventTypes.js"]
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f --> 304edd67_bb4f_7b82_bbee_3b770742ef97
  42892443_e223_3da0_aeb9_e1b32a408fb0["ReactInternalTypes"]
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f --> 42892443_e223_3da0_aeb9_e1b32a408fb0
  846f0667_39ae_eb6e_55fe_26d3acf81e44["ReactFabricEventEmitter.js"]
  846f0667_39ae_eb6e_55fe_26d3acf81e44 --> e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f
  577670f6_1f7f_5e0d_b9b6_894b69a76a73["ReactNativeBridgeEventPlugin.js"]
  577670f6_1f7f_5e0d_b9b6_894b69a76a73 --> e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f
  baab5855_112a_37e6_6ca7_0813fd6ae027["ReactNativeEventEmitter.js"]
  baab5855_112a_37e6_6ca7_0813fd6ae027 --> e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f
  6b52f26d_d341_6500_ecb0_54a0747596f4["EventPluginRegistry.js"]
  6b52f26d_d341_6500_ecb0_54a0747596f4 --> e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f
  style e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f 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 type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {
  DispatchConfig,
  ReactSyntheticEvent,
} from './ReactSyntheticEventType';
import type {TopLevelType} from './TopLevelEventTypes';

export type EventTypes = {[key: string]: DispatchConfig};

export type AnyNativeEvent = Event | KeyboardEvent | MouseEvent | TouchEvent;

export type PluginName = string;

export type EventSystemFlags = number;

export type LegacyPluginModule<NativeEvent> = {
  eventTypes: EventTypes,
  extractEvents: (
    topLevelType: TopLevelType,
    targetInst: null | Fiber,
    nativeTarget: NativeEvent,
    nativeEventTarget: null | EventTarget,
    eventSystemFlags?: number,
    container?: null | EventTarget,
  ) => ?ReactSyntheticEvent,
  tapMoveThreshold?: number,
};

Domain

Dependencies

Frequently Asked Questions

What does PluginModuleType.js do?
PluginModuleType.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does PluginModuleType.js depend on?
PluginModuleType.js imports 3 module(s): ReactInternalTypes, ReactSyntheticEventType.js, TopLevelEventTypes.js.
What files import PluginModuleType.js?
PluginModuleType.js is imported by 4 file(s): EventPluginRegistry.js, ReactFabricEventEmitter.js, ReactNativeBridgeEventPlugin.js, ReactNativeEventEmitter.js.
Where is PluginModuleType.js in the architecture?
PluginModuleType.js is located at packages/react-native-renderer/src/legacy-events/PluginModuleType.js (domain: BabelCompiler, directory: packages/react-native-renderer/src/legacy-events).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free