react-native-callkeep: 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
Bug report
- I’ve checked the example to reproduce the issue.
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
- Reproduced on:
- Android
- iOS
Description
Steps to Reproduce
Versions
- Callkeep:
- React Native:
- iOS:
- Android:
- Phone model:
Logs
Paste here
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 7
- Comments: 17
I was able to get around the error by commenting out one of the methods. Here’s how I did it: edit the file node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java look for this:
and this:
comment or delete them and rebuilt, it should work.
Same issue.
having the same issue
Your patch is redundant. Your build folder got there.
Correct
react-native-callkeep+4.3.16.patch:P.S. @kavehmovahedi Thanks for your solution! It works!
@SolomonFoskaay This is not good solution. The new architecture is our present. You can’t ignore it. And new RN versions won’t have support for the old architecture. Your solution is the same as you will use old versions of RN always.
one another solution to turn new architecture in to False in gradle.properties or comment display incoming call and start call in node modules in Android folder. Thanks
Same issue. RN 0.76.1. newArch enabled.
The issue below describes the problem:
https://github.com/facebook/react-native/issues/45193
Temporarily disabled newArch on gradle.properties as workaround:
Same issue. It happens only on Android when “new arch” is enabled.
To reproduce:
newArchEnabled=truein gradle.propertiesimport RNCallKeep from 'react-native-callkeep';Removing the CallKeep import gets rid of the error message. Disabling “new arch” gets rid of the error message.
This happens on React Native 0.76 (where new architecture is enabled by default) and also happens in earlier versions if you enable the new architecture manually.
Same issue. RN 0.76.1. newArch enabled.
having the same issue
Same issue on latest “react-native”: “^0.76.1”, but not “react-native”: “^0.75.4”,