react-native-call-observer
v1.0.7
Published
React Native module for observing call status
Downloads
10
Readme
react-native-call-observer ·
Native call observer for iOS.
Usage (iOS)
npm install --save react-native-call-observer
or
yarn add react-native-call-observer
Adding automatically with react-native link
At the command line, in your project folder, type:
react-native link react-native-call-observer
Example
import callObserver from 'react-native-call-observer';
componentDidMount(){
callObserver.addEventListener((callStatus)=>{
console.log(callStatus) // e.g. {callStatus: 'ended'}
})
}
Contributing
Any contribution is welcomed.
Licence
react-native-call-observer is MIT licensed.