MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / getActionPrefix

Function getActionPrefix

src/core/utils/getActionPrefix.ts:9–20  ·  view source on GitHub ↗
(
  str?: string | null
)

Source from the content-addressed store, hash-verified

7 * @returns The action prefix.
8 */
9export const getActionPrefix = (
10 str?: string | null
11): IterableCustomActionPrefix | null => {
12 if (!str) return null;
13 if (str.startsWith(IterableCustomActionPrefix.Action)) {
14 return IterableCustomActionPrefix.Action;
15 }
16 if (str.startsWith(IterableCustomActionPrefix.Itbl)) {
17 return IterableCustomActionPrefix.Itbl;
18 }
19 return null;
20};

Callers 2

handleClickMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…