Incall manager for ReactNative
npm install react-native-incall-manager-lightLight incall manager for React Native
``sh`
npm install react-native-incall-manager-light
`sh`
yarn add react-native-incall-manager-light
`sh`
cd ios/ && pod install
and WAKE_LOCK permissions to AndroidManifest.xml
`sh
// ...
`
Usage
`js
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 |See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT