/ SDKs / React Native
Calls SDKs React Native v1
Calls SDKs React Native
Calls SDKs
React Native
Version 1

End a call

Copy link

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.

// Receives the event.
 // ...

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