Issue with C++ Turbo Module in React Native 0.76.5 (Works in iOS, Not in Android) #48298
Labels
Needs: Triage 🔍
Platform: Android
Android applications.
Platform: iOS
iOS applications.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
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: