{"id":4591,"url":"https://github.com/tiaanduplessis/react-native-phone-call","last_synced_at":"2025-08-08T01:41:11.014Z","repository":{"id":57339031,"uuid":"79806597","full_name":"tiaanduplessis/react-native-phone-call","owner":"tiaanduplessis","description":"Initiate a phone call in React Native","archived":false,"fork":false,"pushed_at":"2022-12-12T13:24:45.000Z","size":238,"stargazers_count":170,"open_issues_count":2,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-26T00:35:09.611Z","etag":null,"topics":["call","phone-call","react-native"],"latest_commit_sha":null,"homepage":null,"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-01-23T13:27:47.000Z","updated_at":"2025-07-12T11:17:23.000Z","dependencies_parsed_at":"2023-01-27T20:01:48.999Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/react-native-phone-call","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/react-native-phone-call","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-phone-call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-phone-call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-phone-call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-phone-call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/react-native-phone-call/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Freact-native-phone-call/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268636418,"owners_count":24282089,"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-03T02:00:12.545Z","response_time":2577,"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":["call","phone-call","react-native"],"created_at":"2024-01-05T20:17:17.290Z","updated_at":"2025-08-04T01:32:38.087Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["System"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"80%\" src=\"media/banner.png\" alt=\"\"\u003e\n\u003c/div\u003e\n\n# react-native-phone-call\n[![package version](https://img.shields.io/npm/v/react-native-phone-call.svg?style=flat-square)](https://npmjs.org/package/react-native-phone-call)\n[![package downloads](https://img.shields.io/npm/dm/react-native-phone-call.svg?style=flat-square)](https://npmjs.org/package/react-native-phone-call)\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-phone-call.svg?style=flat-square)](https://npmjs.org/package/react-native-phone-call)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\nInitiate a phone call in React Native.\n\n## Table of Contents\n\n- [react-native-phone-call](#react-native-phone-call)\n  - [Background](#background)\n    - [Running on iOS simulator](#running-on-ios-simulator)\n    - [Running on Android SDK 30+](#running-on-android-sdk-30)\n    - [Limitations](#limitations)\n  - [Install](#install)\n  - [Usage](#usage)\n    - [Example with phone and extension.](#example-with-phone-and-extension)\n  - [API](#api)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Background\n\nThis is a small wrapper that allows you to initiate a phone call in React Native. \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\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### Limitations\n\nThis module only provides a simple wrapper around the Linking API and is thus limited in the functionality it can provide. If you are looking for additional functionality, such as being able to initiate a phone call without user confirmation, please use other packages like [react-native-immediate-phone-call](https://github.com/wumke/react-native-immediate-phone-call).\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-phone-call\n```\n\nWith `yarn`:\n```sh\nyarn add react-native-phone-call\n```\n\n## Usage\n\nTo use the module, call the function with an object containing the number to call as a argument.\n\n```js\nimport call from 'react-native-phone-call'\n\nconst args = {\n  number: '9093900003', // String value with the number to call\n  prompt: false, // Optional boolean property. Determines if the user should be prompted prior to the call \n  skipCanOpen: true // Skip the canOpenURL check\n}\n\ncall(args).catch(console.error)\n```\n\n### Example with phone and extension.\n\nUse commas to add time between pressing different digits. (ex. dial a number and wait to be connected and menu to start being read. Press a number for an extension. Even wait longer for another menus and press another number for another extension.)\n\n```js\nconst args = {\n  number: '9093900003,,,3,,,274', // Use commas to add time between digits.\n  prompt: false\n}\n\ncall(args).catch(console.error)\n```\n## API\n\nFor all configuration options, please see the [API docs](https://paka.dev/npm/react-native-phone-call).\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-phone-call/issues) or [make a pull request](https://makeapullrequest.com/).\n\n## License\n\n[MIT © Tiaan du Plessis](./LICENSE)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Freact-native-phone-call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Freact-native-phone-call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Freact-native-phone-call/lists"}