Light incall manager for React Native
npm install react-native-incall-manager-lightyarn add react-native-incall-manager-lightcd ios/ && pod installRequired 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" />import IncallManagerLight from 'react-native-incall-manager-light';
// ...
IncallManagerLight.enableProximity();| 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