react-native-incall-manager-light
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-native-incall-manager-light

Light incall manager for React Native

Installation

npm install react-native-incall-manager-light
yarn add react-native-incall-manager-light

iOS

cd ios/ && pod install

Android

Required to add MODIFY_AUDIO_SETTINGS and WAKE_LOCK permissions to AndroidManifest.xml

// ...
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

Usage

import IncallManagerLight from 'react-native-incall-manager-light';

// ...

IncallManagerLight.enableProximity();

Methods

method description
isSpeakerphoneOn() Return boolean value
setSpeakerPhoneOn(enable: boolean) Set speakerphone status
enableProximity() Enables the screen to turn off when an object approaches the proximity sensor
disableProximity() Disables the screen to turn off when an object approaches the proximity sensor

Contributing

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

License

MIT

Package Sidebar

Install

npm i react-native-incall-manager-light

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

51 kB

Total Files

28

Last publish

Collaborators

  • iqorlobanov