@mattermost/react-native-turbo-mailer
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

@mattermost/react-native-turbo-mailer

An adaptation of react-native-mail that supports Turbo Module

Installation

npm install @mattermost/react-native-turbo-mailer
Android specific

Create a file under android/src/main/res/xml called provider_paths.xml and add the following content

<?xml version='1.0' encoding='utf-8'?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
    <files-path name="files" path="." />
    <external-files-path name="external_files" path="." />
    <external-path name="external" path="." />
    <cache-path name="cache" path="." />
    <root-path name="root" path="." />
</paths>

Usage

import TurboMailer from '@mattermost/react-native-turbo-mailer';

// ...
 await TurboMailer.sendMail({
    subject: "subject here",
    recipients: ["support@gmail.com"],
    body: "mail body here",
    attachments: [{
        path: '',
        mimeType: ''
    }],
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Package Sidebar

Install

npm i @mattermost/react-native-turbo-mailer

Weekly Downloads

4

Version

0.2.4

License

MIT

Unpacked Size

42 kB

Total Files

29

Last publish

Collaborators

  • danielsischy
  • streamer45
  • cpoile
  • devinbinnie
  • mattermost-user
  • crspeller
  • jwilander
  • coreyhulen
  • enahum
  • matterbuild
  • hmhealey