Multiple Library Codegens? #158
-
I engulfed a private library that was working an upgrade to New Arch - it has never been deployed/merged. The intending application is now 73. So I took it for a spin with
Which is probably because I have an array of libraries vs one I'm guessing: "codegenConfig": [
{
"name": "RNBluetoothSerialSpec",
"type": "modules",
"jsSrcsDir": "src",
"android": {
"javaPackageName": "com.xxx.xxx"
}
},
{
"name": "RNAcessoryManagerSpec",
"type": "modules",
"jsSrcsDir": "src"
}
], Though I'm looking at the original ticket where this development started and it has quoted this is a valid example: "codegenConfig": {
"libraries": [
{
"name": "libName1",
"type": "all|components|modules",
"jsSrcsRoot": "libName1/js"
},
{
"name": "libName2",
"type": "all|components|modules",
"jsSrcsRoot": "libName2/src"
}
]
} Ultimately I struggle in docs to find if this is a supported behavior now, so looking for some help. My guess is I might have to unify these libraries to 1 between iOS/Android - However, this is Bluetooth so between External Accessory on iOS and A bit lost as I can't find anything in the Codegen docs of the schema itself of this property. Someone able to just set me straight? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe you can specify one entry for
and then put multiple specs into |
Beta Was this translation helpful? Give feedback.
I believe you can specify one entry for
codegenConfig
in package.jsonand then put multiple specs into
src/spec
. Codegen will pick it up.