Open
Description
i'm not sure why this code was added but so as same name cannot exist for a method its throwing error in new arch
react-native > 0.76.0
Exact error was
Error: Exception in HostObject::get for prop 'RNCallKeep': com.facebook.react.internal.turbomodule.core.TurboModuleInteropUtils$ParsingException: Unable to parse @ReactMethod annotations from native module: RNCallKeep. Details: Module exports two methods to JavaScript with the same name: "displayIncomingCall
removed below code
- @ReactMethod
- public void startCall(String uuid, String number, String callerName) {
- this.startCall(uuid, number, callerName, false, null);
- }
-
- @ReactMethod
- public void displayIncomingCall(String uuid, String number, String callerName) {
- this.displayIncomingCall(uuid, number, callerName, false, null);
- }
-
Because already these methods existed
@ReactMethod
public void startCall(String uuid, String number, String callerName, boolean hasVideo) {
this.startCall(uuid, number, callerName, hasVideo, null);
}
@ReactMethod
public void displayIncomingCall(String uuid, String number, String callerName, boolean hasVideo) {
this.displayIncomingCall(uuid, number, callerName, hasVideo, null);
}
Metadata
Metadata
Assignees
Labels
No labels