Home / File/ ReactNativeGlobalResponderHandler.js — react Source File

ReactNativeGlobalResponderHandler.js — react Source File

Architecture documentation for ReactNativeGlobalResponderHandler.js, a javascript file in the react codebase. 1 imports, 1 dependents.

File javascript BabelCompiler 1 imports 1 dependents

Entity Profile

Dependency Diagram

graph LR
  6095ade4_1531_83bf_ef5d_79bc0cd0f450["ReactNativeGlobalResponderHandler.js"]
  94a68304_3047_524d_e604_af34f5a80eaf["ReactNativePrivateInterface"]
  6095ade4_1531_83bf_ef5d_79bc0cd0f450 --> 94a68304_3047_524d_e604_af34f5a80eaf
  dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87["ReactNativeInjection.js"]
  dea78bbd_0d4e_27e7_3d5e_51bbb5d31b87 --> 6095ade4_1531_83bf_ef5d_79bc0cd0f450
  style 6095ade4_1531_83bf_ef5d_79bc0cd0f450 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
 */

// Module provided by RN:
import {UIManager} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';

const ReactNativeGlobalResponderHandler = {
  onChange: function (from: any, to: any, blockNativeResponder: boolean) {
    if (to !== null) {
      const tag = to.stateNode._nativeTag;
      UIManager.setJSResponder(tag, blockNativeResponder);
    } else {
      UIManager.clearJSResponder();
    }
  },
};

export default ReactNativeGlobalResponderHandler;

Domain

Dependencies

  • ReactNativePrivateInterface

Frequently Asked Questions

What does ReactNativeGlobalResponderHandler.js do?
ReactNativeGlobalResponderHandler.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactNativeGlobalResponderHandler.js depend on?
ReactNativeGlobalResponderHandler.js imports 1 module(s): ReactNativePrivateInterface.
What files import ReactNativeGlobalResponderHandler.js?
ReactNativeGlobalResponderHandler.js is imported by 1 file(s): ReactNativeInjection.js.
Where is ReactNativeGlobalResponderHandler.js in the architecture?
ReactNativeGlobalResponderHandler.js is located at packages/react-native-renderer/src/ReactNativeGlobalResponderHandler.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