-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathindex.d.ts
More file actions
29 lines (25 loc) · 720 Bytes
/
index.d.ts
File metadata and controls
29 lines (25 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
declare module "react-native-sms" {
export enum AndroidSuccessTypes {
all = "all",
inbox = "inbox",
sent = "sent",
draft = "draft",
outbox = "outbox",
failed = "failed",
queued = "queued",
}
export interface AttachmentOptions {
url: string;
iosType?: string;
iosFilename?: string;
androidType?: string;
}
export interface SendSmsOptions {
body?: string;
recipients?: string[];
successTypes?: AndroidSuccessTypes[];
allowAndroidSendWithoutReadPermission?: boolean;
attachment?: AttachmentOptions;
}
export function send(options: SendSmsOptions, callback: (completed: boolean, cancelled: boolean, error: boolean) => void): Promise<void>;
}