
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
react-native-email-intent
Advanced tools
Open the mail app of the user's choice ( fork of 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. Very helpful for magic link logins.
Currently supported apps:
yarn add react-native-email-link
This package works with autolinking on RN>=0.60. If you're using an earlier version of React Native, please install version 1.4.0 of the library, or
check out the legacy rnpm branch.
Based on the platforms your app supports, you also need to:
To allow your app to detect if any of the mailbox apps are installed, an extra step is required on iOS. Your app needs to provide the LSApplicationQueriesSchemes key inside ios/{my-project}/Info.plist to specify the URL schemes with which the app can interact.
Just add 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 maps 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>
<string>ymail</string>
<string>superhuman</string>
<string>yandexmail</string>
</array>
Using Expo? Read the instructions to make it work on iOS.
When switching to Android 11/Android SDK 30 (i.e. using Expo SDK 41), this library doesn't work out of the box anymore. The reason is the new Package Visibilty security feature. We'll have to update our AndroidManifest.xml to explicitly allow querying for other apps.
You can do so by coping the <queries> statement below, and pasting it in the top level of your AndroidManifest (i.e. within the <manifest> ... </manifest>).
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="mailto"/>
</intent>
</queries>
Read the instructions here to make it work on iOS.
import { openInbox } from "react-native-email-link";
openInbox();
titleText for the top of the ActionSheet or Intent.
| Type | Required | Default |
|---|---|---|
| string | No | 'Open mail app' |
messageSubtext under the title on the ActionSheet
| Type | Required | Default | Platform |
|---|---|---|---|
| string | No | 'Which app would you like to open?' | iOS |
cancelLabelText for last button of the ActionSheet.
| Type | Required | Default | Platform |
|---|---|---|---|
| string | No | 'Cancel' | iOS |
removeTextIf true, not text will be show above the ActionSheet or Intent. Default value is false.
| Type | Required | Default |
|---|---|---|
| boolean | No | false |
newTaskIf true, the email Intent will be started in a new Android task. Else, the Intent will be launched in the current task.
Read more about Android tasks here.
| Type | Required | Default | Platform |
|---|---|---|---|
| boolean | No | true | Android |
import { openInbox } from "react-native-email-link";
openInbox({
message: "Whatcha wanna do?",
cancelLabel: "Go back!",
});
import { openComposer } from "react-native-email-link";
openComposer();
titlemessage (iOS only)cancelLabel (iOS only)removeTexttocc (iOS only)bcc (iOS only)subjectbodyencodeBodytitleText for the top of the ActionSheet or Intent.
| Type | Required | Default |
|---|---|---|
| string | No | 'Open mail app' |
messageSubtext under the title on the ActionSheet.
| Type | Required | Default | Platform |
|---|---|---|---|
| string | No | 'Which app would you like to open?' | iOS |
cancelLabelText for last button of the ActionSheet.
| Type | Required | Default | Platform |
|---|---|---|---|
| string | No | 'Cancel' | iOS |
removeTextIf true, not text will be show above the ActionSheet or Intent. Default value is false.
| Type | Required | Default |
|---|---|---|
| boolean | No | false |
toRecipient's email address.
| Type | Required | Default |
|---|---|---|
| string | No | null |
ccEmail's cc (iOS only).
| Type | Required | Default |
|---|---|---|
| string | No | null |
bccEmail's bcc (iOS only).
| Type | Required | Default |
|---|---|---|
| string | No | null |
subjectEmail's subject.
| Type | Required | Default |
|---|---|---|
| string | No | null |
bodyEmail's body.
| Type | Required | Default |
|---|---|---|
| string | No | null |
encodeBodyApply encodeURIComponent to the email's body.
| Type | Required | Default |
|---|---|---|
| boolean | No | false |
import { openComposer } from "react-native-email-link";
openComposer({
to: "support@example.com",
subject: "I have a question",
body: "Hi, can you help me with...",
});
FAQs
Open the mail app of the user's choice ( fork of react-native-email-link)
We found that react-native-email-intent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.