A React Native library to initiate phone calls with support for extensions and platform-specific handling.
react-native-phone-call is a lightweight React Native library that initiates phone calls from mobile applications. It wraps React Native's Linking API to open the device's dialer with a specified number, requiring user confirmation to place the call. It simplifies dialing numbers, supports adding pauses for extensions, and handles platform-specific requirements for iOS and Android.
React Native developers building mobile applications that require initiating phone calls, such as contact apps, customer service apps, or apps with click-to-call functionality. It is suitable for developers who need a simple, reliable way to trigger the native phone dialer.
Developers choose this library for its minimal, focused approach that leverages React Native's built-in capabilities without unnecessary complexity. It provides clear guidance for platform-specific handling (like Android SDK 30+ permissions and iOS simulator limitations) and offers configuration options like prompt control and URL check bypassing.
Initiate a phone call in React Native
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a straightforward, lightweight wrapper around React Native's Linking API, making it easy to initiate calls with simple arguments like number, prompt, and skipCanOpen, as shown in the usage examples.
Allows dialing extensions or navigating phone menus by adding pauses with commas in the number string, demonstrated in the example with '9093900003,,,3,,,274'.
The README explicitly addresses iOS simulator limitations and provides step-by-step instructions for Android SDK 30+ manifest changes, helping developers avoid common pitfalls.
Offers flexibility with options like prompt to control user confirmation and skipCanOpen to bypass URL checks, as detailed in the API and usage sections.
Does not work on the iOS simulator because it lacks access to the dialer app, limiting development and testing capabilities, as admitted in the README under 'Running on iOS simulator'.
Requires manual editing of AndroidManifest.xml with a <queries> element for Android SDK 30+, adding an extra configuration step that can be error-prone for some teams.
Only opens the native dialer with user confirmation; it cannot initiate calls directly or offer advanced telephony features, which the limitations section acknowledges by referring to other packages like react-native-immediate-phone-call.