Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

Commit 6e6dd73

Browse files
committed
check for OS added.
1 parent e9ef84a commit 6e6dd73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ export default class RNCallKit {
9292
}
9393

9494
static checkIfBusy() {
95-
if (Platform.OS !== 'ios') return;
96-
_RNCallKit.checkIfBusy
95+
return Platform.OS === 'ios'
96+
? _RNCallKit.checkIfBusy()
97+
: Promise.reject('RNCallKit.checkIfBusy was called from unsupported OS');
9798
};
98-
99+
99100
/*
100101
static setHeldCall(uuid, onHold) {
101102
if (Platform.OS !== 'ios') return;

0 commit comments

Comments
 (0)