expo-custom-mail
v0.2.9
Published
Send email with attachments
Downloads
6
Maintainers
Readme
expo-custom-mail
Forked version of https://docs.expo.dev/versions/latest/sdk/mail-composer/
[Android only]
The fork appeared due to this issue
Compatibility
| Expo SDK Version | Lib version | |------------------|-------------| | 50 | 0.2.9 ✅ | | < 50 | 0.2.8 ✅ |
Usage:
import * as ExpoCustomMail from 'expo-custom-mail';
import * as MailComposer from 'expo-mail-composer';
if (Platform.OS === 'ios') {
const res = await MailComposer.composeAsync({
subject,
attachments,
recipients,
});
if (res.status === MailComposerStatus.SENT) {}
} else {
await ExpoCustomMail.composeAsync({
subject,
attachments,
recipients,
});
}