Closed connorpmullins closed 4 months ago
The code that fires the error message you mentioned was introduced in 0.73: https://github.com/facebook/react-native/commit/1f7daf988b50005e3c659936c3e598aa3aa310f0
So I'm unsure why you're seeing this only when bumping 0.74 -> 0.73. I have the suspect you were not using bridgeless in 0.73 but we can't really see without the full repro.
Anyway, the error is legit as the Iterable SDK is annotating two methods with the same name (as you said) so they should fix this in their SDK: https://github.com/Iterable/react-native-sdk/blob/e4eb49140a99a66f3d56089a8d2d8c7cc34f13ac/android/src/main/java/com/iterable/reactnative/RNIterableAPIModule.java#L148-L159
@cortinico - seen your work around github, thanks for taking the time to check out my issue and appreciate everything you do for the community!
Description
Hello New Arch friends!!
After upgrading to React Native 74/bridgeless from 73 (already was using the new arch), I'm receiving the following issue:
The error makes sense, there are two instances of
setUserId
in the RNIterableAPI package - they're method overloads. I guess it also makes sense javascript doesn't support overloading.What I don't understand is why this error started popping up now. I ran across this thread where two other people were experiencing the same issue with different packages than me - otherwise I'd continue to assume that I have some sort of configuration or caching issue. That could, of course, still be the case.
Update: It's probably the case. My reproducer demo shows that react native 0.74.2 is in fact working with Iterable. I'm filing this anyway in case anyone else finds their way here in search of help. To everyone supporting react-native, though, feel free to close this. I don't know where to go from here, but I'll report back if I resolve the issue.
Steps to reproduce
"@iterable/react-native-sdk": "1.3.19"
React Native Version
0.74.2
Affected Platforms
Runtime - Android
Areas
Bridgeless - The New Initialization Flow
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/connorpmullins/breakIterable
Screenshots and Videos
No response