Skip to content

Commit

Permalink
Merge pull request react-native-webrtc#373 from maludwig/fixing-const…
Browse files Browse the repository at this point in the history
…ant-types

Fixing types
  • Loading branch information
sboily authored Feb 26, 2021
2 parents 8afacec + aaf68a6 commit 51c4b07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ declare module 'react-native-callkeep' {
export type DidDisplayIncomingCallPayload = string | undefined;
export type DidPerformSetMutedCallActionPayload = boolean;

export const CONSTANTS: {
END_CALL_REASONS: {
FAILED: 1,
REMOTE_ENDED: 2,
UNANSWERED: 3,
ANSWERED_ELSEWHERE: 4,
DECLINED_ELSEWHERE: 5 | 2,
MISSED: 2 | 6
}
};

export default class RNCallKeep {
static addEventListener(type: Events, handler: (args: any) => void): void

Expand Down

0 comments on commit 51c4b07

Please sign in to comment.