Native call observer for iOS.
npm install --save react-native-call-observeror
yarn add react-native-call-observer At the command line, in your project folder, type:
react-native link react-native-call-observerimport callObserver from 'react-native-call-observer';
componentDidMount(){
callObserver.addEventListener((callStatus)=>{
console.log(callStatus) // e.g. {callStatus: 'ended'}
})
}Any contribution is welcomed.
react-native-call-observer is MIT licensed.