Skip to content

When i have my own native modules in my RN application, this library generates specs to incorect folder #8123

@jfojtl

Description

@jfojtl

What happened?

When I add the following config to my root package.json:

"codegenConfig": {
    "name": "MeddiSpec",
    "type": "all",
    "jsSrcsDir": "src/specs",
    "android": {
      "javaPackageName": "com.meddi"
    }
  }

This library generates the following structure:

Image

I am fairly new to the TurboModules, I have to deal with it now when upgrading to RN 0.77, but when I remove our codegenConfig section from package.json, this library starts working okay. This is the only library with this kind of behavior. Any help appreciated if problem is on our side.

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version:
React Native version: 0.77.3
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: v22
Device model: -
Android version: -

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions