File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ class RNCallKitExample extends React.Component {
245245 RNCallKit .addEventListener (' answerCall' , this .onRNCallKitPerformAnswerCallAction );
246246 RNCallKit .addEventListener (' endCall' , this .onRNCallKitPerformEndCallAction );
247247 RNCallKit .addEventListener (' didActivateAudioSession' , this .onRNCallKitDidActivateAudioSession );
248+ RNCallKit .addEventListener (' didDisplayIncomingCall' , this .onRNCallKitDidDisplayIncomingCall );
248249 }
249250
250251 onRNCallKitDidReceiveStartCallAction (data ) {
@@ -285,6 +286,12 @@ class RNCallKitExample extends React.Component {
285286 */
286287 }
287288
289+ onRNCallKitDidDisplayIncomingCall (error ) {
290+ /* You will get this event after RNCallKit finishes showing incoming call UI
291+ * You can check if there was an error while displaying
292+ */
293+ }
294+
288295 // This is a fake function where you can receive incoming call notifications
289296 onIncomingCall () {
290297 // Store the generated uuid somewhere
You can’t perform that action at this time.
0 commit comments