Home / File/ ResponderTopLevelEventTypes.js — react Source File

ResponderTopLevelEventTypes.js — react Source File

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

File javascript BabelCompiler Validation 2 dependents 3 functions

Entity Profile

Dependency Diagram

graph LR
  286a851e_063c_46bb_a363_9c8b89aa0e3e["ResponderTopLevelEventTypes.js"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3 --> 286a851e_063c_46bb_a363_9c8b89aa0e3e
  9ad2f0e1_d59b_817a_da0e_0e75838ea57c["ResponderTouchHistoryStore.js"]
  9ad2f0e1_d59b_817a_da0e_0e75838ea57c --> 286a851e_063c_46bb_a363_9c8b89aa0e3e
  style 286a851e_063c_46bb_a363_9c8b89aa0e3e 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
 */

export const TOP_TOUCH_START = 'topTouchStart';
export const TOP_TOUCH_MOVE = 'topTouchMove';
export const TOP_TOUCH_END = 'topTouchEnd';
export const TOP_TOUCH_CANCEL = 'topTouchCancel';
export const TOP_SCROLL = 'topScroll';
export const TOP_SELECTION_CHANGE = 'topSelectionChange';

export function isStartish(topLevelType: mixed): boolean {
  return topLevelType === TOP_TOUCH_START;
}

export function isMoveish(topLevelType: mixed): boolean {
  return topLevelType === TOP_TOUCH_MOVE;
}

export function isEndish(topLevelType: mixed): boolean {
  return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL;
}

export const startDependencies = [TOP_TOUCH_START];
export const moveDependencies = [TOP_TOUCH_MOVE];
export const endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END];

Domain

Subdomains

Frequently Asked Questions

What does ResponderTopLevelEventTypes.js do?
ResponderTopLevelEventTypes.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 ResponderTopLevelEventTypes.js?
ResponderTopLevelEventTypes.js defines 3 function(s): isEndish, isMoveish, isStartish.
What files import ResponderTopLevelEventTypes.js?
ResponderTopLevelEventTypes.js is imported by 2 file(s): ResponderEventPlugin.js, ResponderTouchHistoryStore.js.
Where is ResponderTopLevelEventTypes.js in the architecture?
ResponderTopLevelEventTypes.js is located at packages/react-native-renderer/src/legacy-events/ResponderTopLevelEventTypes.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