Send email with attachments
npm install expo-custom-mailForked version of https://docs.expo.dev/versions/latest/sdk/mail-composer/
[Android only]
The fork appeared due to this issue
| 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,
});
}