react-native-phone-call

Initiate a phone call in React Native.

Introduction

This is a small module that allows you to initiate a phone call in React Native.

NOTE

When runnning on the iOS simulator, you will get a the URL is invalid error. This will work on a actual device. The iOS simulator does not support phone call feature.

Install

Install with npm

$ npm install --save react-native-phone-call

Install with yarn

$ yarn add react-native-phone-call

Usage

To use the module, call the function with an object containing the number to call as a argument.

import call from 'react-native-phone-call'

const args = {
  number: '9093900003', // String value with the number to call
  prompt: false // Optional boolean property. Determines if the user should be prompt prior to the call 
}

call(args).catch(console.error)

GitHub