Home / Function/ noResponderTouches() — react Function Reference

noResponderTouches() — react Function Reference

Architecture documentation for the noResponderTouches() function in ResponderEventPlugin.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  245511e8_def9_c356_241b_db9e7eaf90f5["noResponderTouches()"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"]
  245511e8_def9_c356_241b_db9e7eaf90f5 -->|defined in| 674c6180_b91e_e17d_fb2d_40a6a3631bb3
  8f2d8ef0_4fcf_28f9_e399_4b0f1d11c533["ResponderEventPlugin.extractEvents()"]
  8f2d8ef0_4fcf_28f9_e399_4b0f1d11c533 -->|calls| 245511e8_def9_c356_241b_db9e7eaf90f5
  ba0a3c44_5cde_86ea_d40b_036ef5700dd2["isAncestor()"]
  245511e8_def9_c356_241b_db9e7eaf90f5 -->|calls| ba0a3c44_5cde_86ea_d40b_036ef5700dd2
  style 245511e8_def9_c356_241b_db9e7eaf90f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js lines 665–682

function noResponderTouches(nativeEvent) {
  const touches = nativeEvent.touches;
  if (!touches || touches.length === 0) {
    return true;
  }
  for (let i = 0; i < touches.length; i++) {
    const activeTouch = touches[i];
    const target = activeTouch.target;
    if (target !== null && target !== undefined && target !== 0) {
      // Is the original touch location inside of the current responder?
      const targetInst = getInstanceFromNode(target);
      if (isAncestor(responderInst, targetInst)) {
        return false;
      }
    }
  }
  return true;
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does noResponderTouches() do?
noResponderTouches() is a function in the react codebase, defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js.
Where is noResponderTouches() defined?
noResponderTouches() is defined in packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js at line 665.
What does noResponderTouches() call?
noResponderTouches() calls 1 function(s): isAncestor.
What calls noResponderTouches()?
noResponderTouches() is called by 1 function(s): ResponderEventPlugin.extractEvents.

Analyze Your Own Codebase

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

Try Supermodel Free