TP-62361 | PR comments resolved
This commit is contained in:
@@ -34,6 +34,11 @@ public class PhoneStateModule extends ReactContextBaseJavaModule {
|
||||
|
||||
@ReactMethod
|
||||
public void getCurrentCallState(Promise promise) {
|
||||
if (telephonyManager == null) {
|
||||
promise.resolve("UNKNOWN");
|
||||
return;
|
||||
}
|
||||
|
||||
int state = telephonyManager.getCallState();
|
||||
String currentCallState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user