'TurboModule is null when accessing as NativeModules.NativeSampleModule used migration guide from react-native@next
i was implementing turbo module by following the migration guide in React Native Next docs then everything setted up no build errors the project starts when i access my native module like NativeModule.NativeSampleModule it is null when i give isTurboModule:false in ReactModuleInfo object then it gives me the data but i think it is just lazily loading the module when i also go to the codegen sample library implementation cpp file and add a debugger to it the String name that i get are of other core modules not mine and this is i'm talking when isTurboModule:true also i have set ReactFeatureFlag.useTurboModules = true; in onCreate().
Pls help!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
