0.1.2 • Published 2 years ago
react-native-incall-manager-light v0.1.2
react-native-incall-manager-light
Light incall manager for React Native
Installation
npm install react-native-incall-manager-lightyarn add react-native-incall-manager-lightiOS
cd ios/ && pod installAndroid
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