From aaf68a6254437e9725c46daea9524723f747fbc0 Mon Sep 17 00:00:00 2001 From: "mitchell.ludwig" Date: Thu, 25 Feb 2021 21:25:49 -0700 Subject: [PATCH] Fixing types --- index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.d.ts b/index.d.ts index 4feb1a36..0ca7adf3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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