Socket
Book a DemoInstallSign in
Socket

react-native-phone-call

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-phone-call

Initiate a phone call in React Native

Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
3.1K
-39.44%
Maintainers
1
Weekly downloads
 
Created
Source
react-native-phone

Initiate a phone call in React Native

Standard Travis build Standard Readme GitHub version Greenkeeper

Built with ❤︎ by Tiaan du Plessis

Table of Contents

Table of Contents
  • Introduction
  • Install
  • Usage
  • Limitations
  • Contribute
  • License
  • Introduction

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

    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)
    

    Limitations

    This 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.

    Contributing

    All Contributions are welcome! Please open up an issue if you would like to help out. :smile:

    License

    Licensed under the MIT License.

    Icon made by Madebyoliver from www.flaticon.com is licensed by CC 3.0 BY

    FAQs

    Package last updated on 31 May 2018

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts