countly-sdk-react-native-bridge icon indicating copy to clipboard operation
countly-sdk-react-native-bridge copied to clipboard

Error after react-native update (Android)

Open andreydos opened this issue 1 year ago • 5 comments

After updating from React Native 0.75.1 to 0.76.3, everything broke. Below are the exact versions and the error details:

"react-native": "0.76.3", "countly-sdk-react-native-bridge": "^24.4.0", After npm run android: Log: (NOBRIDGE) LOG Bridgeless mode is enabled (NOBRIDGE) ERROR Error: Exception in HostObject::get for prop 'CountlyReactNative': com.facebook.react.internal.turbomodule.core.TurboModuleInteropUtils$ParsingException: Unable to parse @ReactMethod annotation from native module method: CountlyReactNative.onNotification(). Details: Unable to parse JNI signature. Detected unsupported parameter class: java.util.Map

andreydos avatar Nov 23 '24 00:11 andreydos

Hi @andreydos , we do not support new architecture so you would need to disable it (gradle.properties, newArchEnabled should be set to false)

turtledreams avatar Nov 25 '24 07:11 turtledreams

Are there any plans to support it in the future?

j-q-in-berlin avatar Jan 10 '25 13:01 j-q-in-berlin

Are there any plans to support it in the future?

Will see. Many well-known libraries have already announced that their future versions will only support the new architecture, meaning that most apps in the React Native community will have to update to the new versions of React Native and adopt the new architecture. If Countly does not support this transition, it’s clear that React Native developers will leave the Countly platform.

andreydos avatar Jan 10 '25 13:01 andreydos

Hi @j-q-in-berlin, yes we have plans to begin transition within this year.

turtledreams avatar Jan 10 '25 15:01 turtledreams

Also interested in new architecture support.

Perhaps this may provide some guidance: https://github.com/gre/react-native-view-shot/pull/543

And official instructions here: https://github.com/reactwg/react-native-new-architecture/blob/main/README.md

andreialecu avatar Jan 23 '25 08:01 andreialecu

Added new architecture support and everything working on our end, please let me know you find an issue.

turtledreams avatar Jun 24 '25 14:06 turtledreams