Calls / React Native
Calls React Native v1
Calls React Native
Calls
React Native
Home
/
Calls
/
React Native
/
Direct call

End a call

A user can end an ongoing call by using the directCall.end() method. If one party ends an ongoing call, the other party receives an event callback through the DirectCallListener.onEnded() listener.

// End a call.
directCall.end();

// Receives the event.
directCall.addListener({
 // ...

 onEnded: (callProps: DirectCallProperties) => {
   // Consider going back or releasing call listeners from here.
 },
});