Need private packages and team management tools?Check out npm Teams »

react-native-email-action

1.0.5 • Public • Published

React Native Email Action

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

foo@bar:~$ npm install --save 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 email app

iOS (If installed)

  • Gmail
  • Outlook
  • Mail

Android

  • All the apps installed.

Roadmap

  • Add other app emails for iOS
  • Add attachment option

Install

npm i react-native-email-action

DownloadsWeekly Downloads

11

Version

1.0.5

License

ISC

Unpacked Size

3.69 kB

Total Files

4

Last publish

Collaborators

  • avatar