expo-mail-composer
allows you to compose and send emails quickly and easily using the OS UI. This module can't be used on iOS Simulators since you can't sign into a mail account on them.Android Device | Android Emulator | iOS Device | iOS Simulator | Web |
---|---|---|---|---|
expo install expo-mail-composer
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
import * as MailComposer from 'expo-mail-composer';
status
field that could be either sent
, saved
or cancelled
. Android does not provide such info so it always resolves to sent
.MailComposer
API can be used in this app.true
if the API can be used, and false
otherwise.true
on iOS when the device has a default email setup for sending mail.false
on iOS if an MDM profile is setup to block outgoing mail. If this is the case, you may want to use the Linking API instead.true
in the browser and on Android