MCPcopy Index your code
hub / github.com/Iterable/react-native-sdk / EmbeddedMessage

Interface EmbeddedMessage

src/api/NativeRNIterableAPI.ts:6–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4// NOTE: No types can be imported because of the way new arch works, so we have
5// to re-define the types here.
6interface EmbeddedMessage {
7 metadata: {
8 messageId: string;
9 placementId: number;
10 campaignId?: number | null;
11 isProof?: boolean;
12 };
13 elements: {
14 buttons?: Array<{
15 id: string;
16 title?: string | null;
17 action: { type: string; data?: string } | null;
18 }> | null;
19 body?: string | null;
20 mediaUrl?: string | null;
21 mediaUrlCaption?: string | null;
22 defaultAction?: { type: string; data?: string } | null;
23 text?: Array<{
24 id: string;
25 text?: string | null;
26 label?: string | null;
27 }> | null;
28 title?: string | null;
29 } | null;
30 payload?: { [key: string]: string | number | boolean | null } | null;
31}
32
33export interface Spec extends TurboModule {
34 // Initialization

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…