File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,15 @@ const RNCallKeepDidPerformDTMFAction = 'RNCallKeepDidPerformDTMFAction';
1515const RNCallKeepProviderReset = 'RNCallKeepProviderReset' ;
1616const isIOS = Platform . OS === 'ios' ;
1717
18- const didReceiveStartCallAction = handler =>
18+ const didReceiveStartCallAction = handler => {
1919 eventEmitter . addListener ( RNCallKeepDidReceiveStartCallAction , ( data ) => handler ( data ) ) ;
2020
21+ if ( isIOS ) {
22+ // Tell CallKeep that we are ready to receive `RNCallKeepDidReceiveStartCallAction` event and prevent delay
23+ RNCallKeepModule . _startCallActionEventListenerAdded ( ) ;
24+ }
25+ } ;
26+
2127const answerCall = handler =>
2228 eventEmitter . addListener ( RNCallKeepPerformAnswerCallAction , ( data ) => handler ( data ) ) ;
2329
You can’t perform that action at this time.
0 commit comments