Skip to content

Commit 23d5810

Browse files
author
saif
committed
Some bugs fixing and new code
1 parent ef3d399 commit 23d5810

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

actions.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const RNCallKeepShowIncomingCallUi = 'RNCallKeepShowIncomingCallUi';
1919
const RNCallKeepOnSilenceIncomingCall = 'RNCallKeepOnSilenceIncomingCall';
2020
const RNCallKeepOnIncomingConnectionFailed = 'RNCallKeepOnIncomingConnectionFailed';
2121
const RNCallKeepDidChangeAudioRoute = 'RNCallKeepDidChangeAudioRoute';
22+
const RNCallKeepHasActiveCall = 'RNCallKeepHasActiveCall';
2223
const isIOS = Platform.OS === 'ios';
2324

2425
const didReceiveStartCallAction = handler => {
@@ -60,6 +61,9 @@ const didDisplayIncomingCall = handler => eventEmitter.addListener(RNCallKeepDid
6061
const didPerformSetMutedCallAction = handler =>
6162
eventEmitter.addListener(RNCallKeepDidPerformSetMutedCallAction, (data) => handler(data));
6263

64+
const onHasActiveCall = handler =>
65+
eventEmitter.addListener(RNCallKeepHasActiveCall, handler);
66+
6367
const didToggleHoldCallAction = handler =>
6468
eventEmitter.addListener(RNCallKeepDidToggleHoldAction, handler);
6569

@@ -103,4 +107,5 @@ export const listeners = {
103107
silenceIncomingCall,
104108
createIncomingConnectionFailed,
105109
didChangeAudioRoute,
110+
onHasActiveCall
106111
};

0 commit comments

Comments
 (0)