Home / Function/ listenerAtPhase() — react Function Reference

listenerAtPhase() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ba1de287_c0e0_6530_3aa3_e5be803c2d6e["listenerAtPhase()"]
  674c6180_b91e_e17d_fb2d_40a6a3631bb3["ResponderEventPlugin.js"]
  ba1de287_c0e0_6530_3aa3_e5be803c2d6e -->|defined in| 674c6180_b91e_e17d_fb2d_40a6a3631bb3
  0104b22b_17a1_c4b6_e482_ee99863d04a6["accumulateDirectionalDispatches()"]
  0104b22b_17a1_c4b6_e482_ee99863d04a6 -->|calls| ba1de287_c0e0_6530_3aa3_e5be803c2d6e
  e4b18fec_4ec4_b0ea_759a_daf5b09e987b["getListener()"]
  ba1de287_c0e0_6530_3aa3_e5be803c2d6e -->|calls| e4b18fec_4ec4_b0ea_759a_daf5b09e987b
  style ba1de287_c0e0_6530_3aa3_e5be803c2d6e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/legacy-events/ResponderEventPlugin.js lines 263–267

function listenerAtPhase(inst, event, propagationPhase: PropagationPhases) {
  const registrationName =
    event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  return getListener(inst, registrationName);
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free