Skip to content

Commit abba992

Browse files
committed
fix typo plus add platform check
1 parent 352660e commit abba992

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ class RNCallKeep {
9090
};
9191

9292
checkIfBusy = () =>
93-
Platform.OS === 'ios'
93+
isIOS
9494
? RNCallKeepModule.checkIfBusy()
9595
: Promise.reject('RNCallKeep.checkIfBusy was called from unsupported OS');
9696

9797
checkSpeaker = () =>
98-
Platform.OS === 'ios'
98+
isIOS
9999
? RNCallKeepModule.checkSpeaker()
100100
: Promise.reject('RNCallKeep.checkSpeaker was called from unsupported OS');
101101

@@ -116,9 +116,9 @@ class RNCallKeep {
116116
RNCallKeepModule.setCurrentCallActive();
117117
};
118118

119-
reportUpdatedCall(uuid, localizedCallerName?: String) {
120-
return Platform.OS === 'ios'
121-
? _RNCallKit.reportUpdatedCall(uuid, localizedCallerName)
119+
reportUpdatedCall(uuid, localizedCallerName) {
120+
return isIOS
121+
? RNCallKeepModule.reportUpdatedCall(uuid, localizedCallerName)
122122
: Promise.reject('RNCallKeep.reportUpdatedCall was called from unsupported OS');
123123
}
124124

0 commit comments

Comments
 (0)