{"id":30060070,"url":"https://github.com/tiaanduplessis/react-native-email","last_synced_at":"2025-08-08T01:41:55.579Z","repository":{"id":38419673,"uuid":"105653163","full_name":"tiaanduplessis/react-native-email","owner":"tiaanduplessis","description":"📮 Send a email using the Linking API","archived":false,"fork":false,"pushed_at":"2022-06-04T09:55:00.000Z","size":275,"stargazers_count":64,"open_issues_count":4,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-26T16:25:18.741Z","etag":null,"topics":["email","linking","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiaanduplessis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T13:10:17.000Z","updated_at":"2024-09-28T05:07:12.000Z","dependencies_parsed_at":"2022-09-11T12:30:54.754Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/react-native-email","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/react-native-email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/react-native-email/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-email/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352350,"owners_count":24402671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","linking","react-native"],"created_at":"2025-08-08T01:41:41.318Z","updated_at":"2025-08-08T01:41:55.547Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 📮 react-native-email\n[![package version](https://img.shields.io/npm/v/react-native-email.svg?style=flat-square)](https://npmjs.org/package/react-native-email)\n[![package downloads](https://img.shields.io/npm/dm/react-native-email.svg?style=flat-square)](https://npmjs.org/package/react-native-email)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/react-native-email.svg?style=flat-square)](https://npmjs.org/package/react-native-email)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\nSend a email using the Linking API\n\n## Table of Contents\n\n- [📮 react-native-email](#-react-native-email)\n  - [Table of Contents](#table-of-contents)\n  - [Install](#install)\n  - [Usage](#usage)\n    - [Running on iOS simulator](#running-on-ios-simulator)\n    - [Running on Android SDK 30+](#running-on-android-sdk-30)\n  - [API](#api)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Install\n\nInstall the package locally within you project folder with your package manager:\n\nWith `npm`:\n```sh\nnpm install react-native-email\n```\n\nWith `yarn`:\n```sh\nyarn add react-native-email\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport { StyleSheet, Button, View } from 'react-native'\nimport email from 'react-native-email'\n\nexport default class App extends React.Component {\n    render() {\n        return (\n            \u003cView style={styles.container}\u003e\n                \u003cButton title=\"Send Mail\" onPress={this.handleEmail} /\u003e\n            \u003c/View\u003e\n        )\n    }\n\n    handleEmail = () =\u003e {\n        const to = ['tiaan@email.com', 'foo@bar.com'] // string or array of email addresses\n        email(to, {\n            // Optional additional arguments\n            cc: ['bazzy@moo.com', 'doooo@daaa.com'], // string or array of email addresses\n            bcc: 'mee@mee.com', // string or array of email addresses\n            subject: 'Show how to use',\n            body: 'Some body right here'\n            checkCanOpen: false // Call Linking.canOpenURL prior to Linking.openURL\n        }).catch(console.error)\n    }\n}\n\nconst styles = StyleSheet.create({\n    container: {\n        flex: 1,\n        backgroundColor: '#fff',\n        alignItems: 'center',\n        justifyContent: 'center'\n    }\n})\n```\n\nThis results to: \n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"70%\" src=\"result.jpeg\" alt=\"\"/\u003e\n\u003c/div\u003e\n\n### Running on iOS simulator\n\nWhen running on the iOS simulator, you will get a `the URL is invalid` error. This will work on an actual device. **The iOS simulator does not have access to the dialer app.**.\n\n### Running on Android SDK 30+\n\nYou will encounter a `Provided URL can not be handled` error when attempting to use the function with the `checkCanOpen` flag enabled.\n\nAndroid SDK 30 introduced changes around how apps can query and interact with other apps. This means `Linking.canOpenURL` returns false for all links unless a `\u003cqueries\u003e` element is added to `AndroidManifest.xml`. Adding the following intent to `android/app/src/main/AndroidManifest.xml` should resolve the issue:\n\n```groovy\n\u003cqueries\u003e\n      \u003cintent\u003e\n        \u003caction android:name=\"android.intent.action.DIAL\" /\u003e\n      \u003c/intent\u003e\n\u003c/queries\u003e\n```\n\n## API\n\nFor all configuration options, please see the [API docs](https://paka.dev/npm/react-native-email).\n\n## Contributing\n\nGot an idea for a new feature? Found a bug? Contributions are welcome! Please [open up an issue](https://github.com/tiaanduplessis/react-native-email/issues) or [make a pull request](https://makeapullrequest.com/).\n\n## License\n\n[MIT © Tiaan du Plessis](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Freact-native-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Freact-native-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Freact-native-email/lists"}