{"id":26707423,"url":"https://github.com/verypossible/react-native-mail-launcher","last_synced_at":"2025-04-13T15:35:10.953Z","repository":{"id":74644355,"uuid":"155414574","full_name":"verypossible/react-native-mail-launcher","owner":"verypossible","description":"Launch mail app from react-native application","archived":false,"fork":false,"pushed_at":"2020-01-14T13:42:08.000Z","size":72,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T06:32:46.312Z","etag":null,"topics":["native-module","react","react-native"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verypossible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-30T15:59:00.000Z","updated_at":"2021-05-31T16:02:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfabb8db-de43-4ad2-a627-62db7b6197ee","html_url":"https://github.com/verypossible/react-native-mail-launcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verypossible%2Freact-native-mail-launcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verypossible%2Freact-native-mail-launcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verypossible%2Freact-native-mail-launcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verypossible%2Freact-native-mail-launcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verypossible","download_url":"https://codeload.github.com/verypossible/react-native-mail-launcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736965,"owners_count":21153681,"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","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":["native-module","react","react-native"],"created_at":"2025-03-27T06:28:55.234Z","updated_at":"2025-04-13T15:35:10.940Z","avatar_url":"https://github.com/verypossible.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-mail-launcher\n\nLaunch mail app from react-native application\n\n## Getting started\n\n`$ npm install react-native-mail-launcher --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-mail-launcher`\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n\n- Add `import com.reactlibrary.RNMailLauncherPackage;` to the imports at the top of the file\n- Add `new RNMailLauncherPackage()` to the list returned by the `getPackages()` method\n\n2. Append the following lines to `android/settings.gradle`:\n   ```\n   include ':react-native-mail-launcher'\n   project(':react-native-mail-launcher').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-mail-launcher/android')\n   ```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n   ```\n     compile project(':react-native-mail-launcher')\n   ```\n\n#### iOS\n\nWe do not need a native module for iOS\n\n## Usage\n\n```javascript\nimport * as React from \"react\";\nimport { View, Button } from \"react-native\";\nimport launchMailApp from \"react-native-mail-launcher\";\n\nexport default class Example extends React.Component {\n  openMail = () =\u003e {\n    launchMailApp();\n  };\n\n  render() {\n    return (\n      \u003cView\u003e\n        \u003cButton onPress={this.openMail}\u003eGo to mail client\u003c/Button\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverypossible%2Freact-native-mail-launcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverypossible%2Freact-native-mail-launcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverypossible%2Freact-native-mail-launcher/lists"}