A simple and customized way to open email linking (Best option for iOS that will ask you what email app you can use, if installed)
npm install --save react-native-email-action
or
yarn add react-native-email-action
After iOS 9+, you need to add this information keys on Info.plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>message</string>
<string>ms-outlook</string>
<string>googlegmail</string>
</array>
import { sendEmail } from 'react-native-email-action';
const options = {
to: "[email protected]",
subject: "Very important!",
body: "Verify your email fast!",
};
sendMail(options);
description | type | required | |
---|---|---|---|
to | Email to destination | string | Y |
subject | Email Subject | string | Y |
body | Email Content | string | Y |
cc | Email CC | array | N |
bcc | Email BCC | array | N |
- Gmail
- Outlook
- All the apps installed.
- Add other app emails for iOS
- Add attachment option