Home / File/ ReactSyntheticEventType.js — react Source File

ReactSyntheticEventType.js — react Source File

Architecture documentation for ReactSyntheticEventType.js, a javascript file in the react codebase. 2 imports, 5 dependents.

File javascript BabelCompiler Validation 2 imports 5 dependents 2 functions

Entity Profile

Dependency Diagram

graph LR
  b2f450b6_f67a_153d_5efb_a03735431450["ReactSyntheticEventType.js"]
  304edd67_bb4f_7b82_bbee_3b770742ef97["TopLevelEventTypes.js"]
  b2f450b6_f67a_153d_5efb_a03735431450 --> 304edd67_bb4f_7b82_bbee_3b770742ef97
  42892443_e223_3da0_aeb9_e1b32a408fb0["ReactInternalTypes"]
  b2f450b6_f67a_153d_5efb_a03735431450 --> 42892443_e223_3da0_aeb9_e1b32a408fb0
  846f0667_39ae_eb6e_55fe_26d3acf81e44["ReactFabricEventEmitter.js"]
  846f0667_39ae_eb6e_55fe_26d3acf81e44 --> b2f450b6_f67a_153d_5efb_a03735431450
  baab5855_112a_37e6_6ca7_0813fd6ae027["ReactNativeEventEmitter.js"]
  baab5855_112a_37e6_6ca7_0813fd6ae027 --> b2f450b6_f67a_153d_5efb_a03735431450
  501868ac_ed82_decd_b0b4_e77c7390f910["EventBatching.js"]
  501868ac_ed82_decd_b0b4_e77c7390f910 --> b2f450b6_f67a_153d_5efb_a03735431450
  6b52f26d_d341_6500_ecb0_54a0747596f4["EventPluginRegistry.js"]
  6b52f26d_d341_6500_ecb0_54a0747596f4 --> b2f450b6_f67a_153d_5efb_a03735431450
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f["PluginModuleType.js"]
  e7f91ff9_eaf6_39c4_5463_6f4e0e1c075f --> b2f450b6_f67a_153d_5efb_a03735431450
  style b2f450b6_f67a_153d_5efb_a03735431450 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 type for SyntheticEvent class that includes private properties
 * @flow
 */

import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {TopLevelType} from './TopLevelEventTypes';

export type DispatchConfig = {
  dependencies?: Array<TopLevelType>,
  phasedRegistrationNames: {
    bubbled: null | string,
    captured: null | string,
    skipBubbling?: ?boolean,
  },
  registrationName?: string,
};

export type CustomDispatchConfig = {
  phasedRegistrationNames: {
    bubbled: null,
    captured: null,
    skipBubbling?: ?boolean,
  },
  registrationName?: string,
  customEvent: true,
};

export type ReactSyntheticEvent = {
  dispatchConfig: DispatchConfig | CustomDispatchConfig,
  getPooled: (
    dispatchConfig: DispatchConfig | CustomDispatchConfig,
    targetInst: Fiber,
    nativeTarget: Event,
    nativeEventTarget: EventTarget,
  ) => ReactSyntheticEvent,
  isPersistent: () => boolean,
  isPropagationStopped: () => boolean,
  _dispatchInstances?: null | Array<Fiber | null> | Fiber,
  _dispatchListeners?: null | Array<Function> | Function,
  _targetInst: Fiber,
  type: string,
  currentTarget: null | EventTarget,
};

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does ReactSyntheticEventType.js do?
ReactSyntheticEventType.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactSyntheticEventType.js?
ReactSyntheticEventType.js defines 2 function(s): ReactSyntheticEvent.isPersistent, ReactSyntheticEvent.isPropagationStopped.
What does ReactSyntheticEventType.js depend on?
ReactSyntheticEventType.js imports 2 module(s): ReactInternalTypes, TopLevelEventTypes.js.
What files import ReactSyntheticEventType.js?
ReactSyntheticEventType.js is imported by 5 file(s): EventBatching.js, EventPluginRegistry.js, PluginModuleType.js, ReactFabricEventEmitter.js, ReactNativeEventEmitter.js.
Where is ReactSyntheticEventType.js in the architecture?
ReactSyntheticEventType.js is located at packages/react-native-renderer/src/legacy-events/ReactSyntheticEventType.js (domain: BabelCompiler, subdomain: Validation, 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