How to use the react-native-callkeep.endCall function in react-native-callkeep

To help you get started, we’ve selected a few react-native-callkeep examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cern-phone-apps / desktop-phone-app / mobile / src / calls / providers / PhoneProvider / PhoneProvider.js View on Github external
handleTerminatedEvent = () => {
    const {
      setCallFinished,
      call: { additionalCalls, tempRemote, remote, onCall, uuid },
      removeAdditionalCall
    } = this.props;
    logMessage(`additionalCalls: ${additionalCalls}`);
    if (additionalCalls > 0) {
      removeAdditionalCall();
      this.addCallToRecentCalls(tempRemote);
      setCallFinished(true, remote);
    } else {
      this.addCallToRecentCalls(onCall ? remote : tempRemote);
      setCallFinished();
    }
    RNCallKeep.endCall(this.getCurrentCallId());
  };
github react-native-webrtc / react-native-callkeep / example / App.js View on Github external
const hangup = (callUUID) => {
    RNCallKeep.endCall(callUUID);
    removeCall(callUUID);
  };
github cern-phone-apps / desktop-phone-app / mobile / src / calls / providers / PhoneProvider / PhoneProvider.js View on Github external
hangUpCurrentCallAction = () => {
    const {
      call: { uuid }
    } = this.props;
    const { toneAPI } = this.state;
    toneOutMessage(`Hang up current call`);
    RNCallKeep.endCall(uuid);
    return toneAPI.hangUp();
  };