react-native-instantpay-call-auth
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

react-native-instantpay-call-auth

React Native module for Detecting Call with event listener. Supports only for Android.

TOC

Installation

npm install react-native-instantpay-call-auth

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import com.instantpaycallauth.InstantpayCallAuthPackage; to the imports at the top of the file
  • Add new InstantpayCallAuthPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-instantpay-call-auth'
    project(':react-native-instantpay-call-auth').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-instantpay-call-auth/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-instantpay-call-auth')
    

Usage

import RNCallAuth from 'react-native-instantpay-call-auth';

// ...

let data = await RNCallAuth.getStatus();

Event Listener Methods

//Add Listener
RNBluetooth.addEventListener("change", handleConnection);

//Remove Listener
RNBluetooth.removeEventListener("change", handleConnection);

handleConnection = (resp) => {
    console.log('response:', resp);
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with Instantpay

Package Sidebar

Install

npm i react-native-instantpay-call-auth

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

64.2 kB

Total Files

23

Last publish

Collaborators

  • instantpay