Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 1.58 KB

README.md

File metadata and controls

62 lines (52 loc) · 1.58 KB

React Native Email Action

npm version Downloads

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)

Demo (iOS)

Alt Text

Installation

npm install --save react-native-email-action

or

yarn add react-native-email-action

iOS Only

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>	

Usage

import { sendEmail } from 'react-native-email-action';

const options = {
  to: "[email protected]", 
  subject: "Very important!", 
  body: "Verify your email fast!",
};
sendMail(options);

Available Options to sendMail

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

Available email app

iOS (If installed)

  • Gmail
  • Outlook
  • Mail

Android

  • All the apps installed.

Roadmap

  • Add other app emails for iOS
  • Add attachment option