-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with C++ Turbo Module in React Native 0.76.5 (Works in iOS, Not in Android) #48298
Comments
Hey @cloud2303 |
Hi @sarthak-d11 |
Getting the same issue - I've started by upgrading our app from 0.74 to 0.76.5 - once the app built but crashed due to:
I tried to simplify the app and I followed step-by-step guide which resulted in the same error anyway. After finding this thread, I've downgraded RN to 0.76.1 in the sample app and my main app and both work fine on 0.76.1. Upgrading to 0.76.2 breaks the app again so whatever causes the issue, must have been introduced in 0.76.2 release. Edit: I pinned it down to this commit 3956955. Using @cortinico - you are the author of the commit so you might be the best person to know how to fix the issue |
I tried to investigate this a bit, and it looks like that, after the commit shared by @jankosecki, the externalNativeBuild {
cmake {
path "src/main/jni/CMakeLists.txt"
}
} I tried something, like adding the I don't have a lot more context here and I'm afraid we have to wait for Nicola to be back after PTO, he should be back next year. |
I’ve put together a potential fix: #48340 |
Description
I am using React Native 0.76.5, and I followed the steps to create a basic C++ Turbo Module demo. However, it does not work on Android, though it works fine on iOS. When I downgrade to React Native 0.76.1, the demo works on both iOS and Android.
Please advise on what might be causing this issue in 0.76.5.
I also came across this pull request, but even after switching to the latest version of OnLoad.cpp, the demo still doesn’t work on 0.76.5. My example repository is using 0.76.1, and I can reproduce the issue by switching to 0.76.5.
Steps to reproduce
React Native Version
0.76.5
Affected Platforms
Runtime - Android
Areas
TurboModule - The New Native Module System
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/cloud2303/new-arch-cpp-module-test
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: