Closed BraveEvidence closed 2 years ago
Can you share a repo to take a look at??
@chakrihacker Check this https://github.com/PritishSawant/ReactNativeMultipleTurboModulesAndFabricExample
The issue happens for iOS codegen. I have multiple Fabric
and TurboModules
Spec in js folder and codegen
is not able to recognise which one is Fabric and which one is TurboModule so I think the issue happens.
Looks like on further debugging, the issue is on codgen side for Fabric. Even individual fabric component with no TurboModule in a separate project is not working
The error logs are for separate project with only fabric module.
Hi @PritishSawant, thanks for your questions. I think you are hitting two different problems, here.
all
. The configuration will look something like this:
"codegenConfig": {
"libraries": [
{
"name": "CustomLib",
"type": "all",
"jsSrcsDir": "./js"
}
]
}
Undefined Symbols for architecture x86_64, _ColoredViewCls
means that iOS is not finding the symbol for the ColoredViewCls
method. If you look here, you'll see that, at the end of the last iOS file, there is the required method: That is something you have to write, the Codegen can't create that for you because the Codegen does not know the name of the class that actually represents the View in the native world.@cipolleschi Thanks closing this
I have a specification for Fabric and TurboModule in my project. It works for separate project. If I try to write both of them in the same project , it generates a bunch of undefined symbols. I think the issue is in package.json file where we write the codegen code
I tried this but it doesn't seem to work and throws a bunch of undefined symbols error