_touchConfig() — react Function Reference
Architecture documentation for the _touchConfig() function in ResponderEventPlugin-test.internal.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD de9213c5_580c_8f64_24a3_0da71e0947f2["_touchConfig()"] 12c1a46b_0ec0_b9d7_3fea_47fae583e158["ResponderEventPlugin-test.internal.js"] de9213c5_580c_8f64_24a3_0da71e0947f2 -->|defined in| 12c1a46b_0ec0_b9d7_3fea_47fae583e158 1edec0bb_a242_d3c9_4f80_5e094093d88d["startConfig()"] 1edec0bb_a242_d3c9_4f80_5e094093d88d -->|calls| de9213c5_580c_8f64_24a3_0da71e0947f2 e7e1802e_2de5_db0b_e529_c76a4a898c14["moveConfig()"] e7e1802e_2de5_db0b_e529_c76a4a898c14 -->|calls| de9213c5_580c_8f64_24a3_0da71e0947f2 27b82fd6_7e51_ee95_e120_24eee2006380["endConfig()"] 27b82fd6_7e51_ee95_e120_24eee2006380 -->|calls| de9213c5_580c_8f64_24a3_0da71e0947f2 b18d8254_8b70_d1f3_feb3_f2a20b968c45["subsequence()"] de9213c5_580c_8f64_24a3_0da71e0947f2 -->|calls| b18d8254_8b70_d1f3_feb3_f2a20b968c45 22d6e49b_bf2d_b876_6a8f_a4ff9a4a25e8["antiSubsequence()"] de9213c5_580c_8f64_24a3_0da71e0947f2 -->|calls| 22d6e49b_bf2d_b876_6a8f_a4ff9a4a25e8 95dc75d4_fb89_ee7f_1c33_948cd9d316d7["touchEvent()"] de9213c5_580c_8f64_24a3_0da71e0947f2 -->|calls| 95dc75d4_fb89_ee7f_1c33_948cd9d316d7 795ec470_4365_96f7_ee23_c43728ff4380["getInstanceFromNode()"] de9213c5_580c_8f64_24a3_0da71e0947f2 -->|calls| 795ec470_4365_96f7_ee23_c43728ff4380 style de9213c5_580c_8f64_24a3_0da71e0947f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/__tests__/ResponderEventPlugin-test.internal.js lines 71–100
const _touchConfig = function (
topType,
targetNodeHandle,
allTouchHandles,
changedIndices,
eventTarget,
) {
const allTouchObjects = allTouchHandles.map(touch);
const changedTouchObjects = subsequence(allTouchObjects, changedIndices);
const activeTouchObjects =
topType === 'topTouchStart'
? allTouchObjects
: topType === 'topTouchMove'
? allTouchObjects
: topType === 'topTouchEnd'
? antiSubsequence(allTouchObjects, changedIndices)
: topType === 'topTouchCancel'
? antiSubsequence(allTouchObjects, changedIndices)
: null;
return {
nativeEvent: touchEvent(
targetNodeHandle,
activeTouchObjects,
changedTouchObjects,
),
topLevelType: topType,
targetInst: getInstanceFromNode(targetNodeHandle),
};
};
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _touchConfig() do?
_touchConfig() is a function in the react codebase, defined in packages/react-native-renderer/src/__tests__/ResponderEventPlugin-test.internal.js.
Where is _touchConfig() defined?
_touchConfig() is defined in packages/react-native-renderer/src/__tests__/ResponderEventPlugin-test.internal.js at line 71.
What does _touchConfig() call?
_touchConfig() calls 4 function(s): antiSubsequence, getInstanceFromNode, subsequence, touchEvent.
What calls _touchConfig()?
_touchConfig() is called by 3 function(s): endConfig, moveConfig, startConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free