1 | import ExpoMailComposer from './ExpoMailComposer';
|
2 | // @needsAudit
|
3 | /**
|
4 | * Opens a mail modal for iOS and a mail app intent for Android and fills the fields with provided
|
5 | * data. On iOS you will need to be signed into the Mail app.
|
6 | * @return A promise fulfilled with an object containing a `status` field that specifies whether an
|
7 | * email was sent, saved, or cancelled. Android does not provide this info, so the status is always
|
8 | * set as if the email were sent.
|
9 | */
|
10 | export async function composeAsync(options) {
|
11 | return await ExpoMailComposer.composeAsync(options);
|
12 | }
|
13 | // @needsAudit
|
14 | /**
|
15 | * Determine if the `MailComposer` API can be used in this app.
|
16 | * @return A promise resolves to `true` if the API can be used, and `false` otherwise.
|
17 | * - Returns `true` on iOS when the device has a default email setup for sending mail.
|
18 | * - Can return `false` on iOS if an MDM profile is setup to block outgoing mail. If this is the
|
19 | * case, you may want to use the Linking API instead.
|
20 | * - Always returns `true` in the browser and on Android.
|
21 | */
|
22 | export async function isAvailableAsync() {
|
23 | return await ExpoMailComposer.isAvailableAsync();
|
24 | }
|
25 | export * from './MailComposer.types';
|
26 | //# sourceMappingURL=MailComposer.js.map |
\ | No newline at end of file |