How to use the expo-mail-composer.composeAsync function in expo-mail-composer

To help you get started, we’ve selected a few expo-mail-composer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mirshko / unleaded / src / components / Settings / index.js View on Github external
const sendFeedback = () => {
    MailComposer.composeAsync({
      recipients: ["unleaded@reiner.design"],
      subject: "Unleaded Feedback",
      body: feedbackTemplate
    }).catch(() =>
      Alert.alert("Unable To Send Feedback", undefined, [
        {
          text: "Copy feedback email",
          onPress: () => Clipboard.setString("unleaded@reiner.design")
        },
        {
          text: "OK"
        }
      ])
    );
  };

expo-mail-composer

Provides an API to compose mails using OS specific UI

MIT
Latest version published 2 months ago

Package Health Score

92 / 100
Full package analysis

Popular expo-mail-composer functions