| 4 | // NOTE: No types can be imported because of the way new arch works, so we have |
| 5 | // to re-define the types here. |
| 6 | interface 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 | |
| 33 | export interface Spec extends TurboModule { |
| 34 | // Initialization |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…