Skip to content

A simple and customized way to open email linking (Best option for iOS that will ask you what email provider you can use)

Notifications You must be signed in to change notification settings

ErickMaeda/react-native-email-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: "erick.maeda26@gmail.com", 
  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

About

A simple and customized way to open email linking (Best option for iOS that will ask you what email provider you can use)

Resources

Stars

Watchers

Forks

Packages

No packages published