How to open up the email composer with Expo

January 24, 2021

Note: this won't work properly when testing on iOS Simulators since you can't sign into a mail account on the simulator.

Install the expo-mail-composer package to your Expo project:

expo install expo-mail-composer

Now, you can import and use the module. For example:

import * as MailComposer from "expo-mail-composer"

// Opens prefilled email
  recipients: [], // array of email addresses
  subject: "",
  body: ""

A quick favor: was anything I wrote incorrect or misspelled, or do you still have questions? Please use this form to let me know or ask for help!