JSPM

  • Created
  • Published
  • Downloads 49652
  • Score
    100M100P100Q152103F
  • License MIT

Open the mail app of the user's choice

Package Exports

  • react-native-email-link

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-email-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Native Email Link

An easy way to open an email app of the user's choice, based on the apps they have installed on their device.

Currently supported apps:

  • Apple Mail
  • Gmail
  • Inbox
  • Spark
  • Airmail
  • Outlook

Installation

npm i -S react-native-email-link         # or yarn add react-native-email-link

A note about iOS 9+

As of iOS 9, your app needs to provide the LSApplicationQueriesSchemes key inside Info.plist to specify the URL schemes with which the app can interact.

Just put this in your Info.plist depending on which apps you'd like to support. Omitting these might mean that the library can't detect some of the mail apps installed by the user.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>message</string>
    <string>readdle-spark</string>
    <string>airmail</string>
    <string>ms-outlook</string>
    <string>googlegmail</string>
    <string>inbox-gmail</string>
</array>

Usage

import { openInbox } from 'react-native-email-link'

openInbox()

Authors

This library is developed by Includable, a creative app and web platform development agency based in Amsterdam, The Netherlands.