MCPcopy Create free account
hub / github.com/getsentry/sentry-react-native / buildTouchMessage

Function buildTouchMessage

packages/core/src/js/ragetap.ts:142–147  ·  view source on GitHub ↗

* Build a human-readable message matching the touch breadcrumb format.

(root: TouchedComponentInfo, label?: string)

Source from the content-addressed store, hash-verified

140 * Build a human-readable message matching the touch breadcrumb format.
141 */
142function buildTouchMessage(root: TouchedComponentInfo, label?: string): string {
143 if (label) {
144 return label;
145 }
146 return `${root.name}${root.file ? ` (${root.file})` : ''}`;
147}
148
149/**
150 * Build a node object compatible with the web SDK's `ReplayBaseDomFrameData`

Callers 1

checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected