An adaptation of react-native-mail that supports Turbo Module
npm install @mattermost/react-native-turbo-mailer
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>
import TurboMailer from '@mattermost/react-native-turbo-mailer';
// ...
await TurboMailer.sendMail({
subject: "subject here",
recipients: ["[email protected]"],
body: "mail body here",
attachments: [{
path: '',
mimeType: ''
}],
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT