Skip to content

Commit 51c4b07

Browse files
authored
Merge pull request #373 from maludwig/fixing-constant-types
Fixing types
2 parents 8afacec + aaf68a6 commit 51c4b07

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ declare module 'react-native-callkeep' {
4141
export type DidDisplayIncomingCallPayload = string | undefined;
4242
export type DidPerformSetMutedCallActionPayload = boolean;
4343

44+
export const CONSTANTS: {
45+
END_CALL_REASONS: {
46+
FAILED: 1,
47+
REMOTE_ENDED: 2,
48+
UNANSWERED: 3,
49+
ANSWERED_ELSEWHERE: 4,
50+
DECLINED_ELSEWHERE: 5 | 2,
51+
MISSED: 2 | 6
52+
}
53+
};
54+
4455
export default class RNCallKeep {
4556
static addEventListener(type: Events, handler: (args: any) => void): void
4657

0 commit comments

Comments
 (0)