react-native-brownfield icon indicating copy to clipboard operation
react-native-brownfield copied to clipboard

[Android] Custom turbo module is working on dev but it is not included in AAR (Invariant Violation: TurboModuleRegistry.getEnforcing)

Open NetPumi2 opened this issue 2 months ago • 1 comments

I am playing with turbo modules in aar. And the app is working fine. But when I generated AAR, it is not working because of this error. The module is super simple, just returning some text, and it's working fine. I have generated Codepen, and all looks fine

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'NativeTestingText' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes

I created a repo. You can reproduce it: https://github.com/NetPumi2/rock-rn-sdk-like/pull/1

This is what an AAR look like:

Image

Spec is there, but I think implementation is missing... I follow RN doc to implement it, and Brownfield is also the default repo Did I miss something?

NetPumi2 avatar Nov 03 '25 15:11 NetPumi2