Skip to content

Conversation

@Space-Belt
Copy link

Summary

update json codegenConfig, because the React Native version changed, which required a new structure for the config.

Changelog

[CATEGORY] [TYPE] - Message

Test Plan

@petrbela
Copy link

petrbela commented Sep 3, 2025

Does it fix this warning?

[Codegen] CodegenConfig Deprecated Setup for react-native-compressor.
    The configuration file still contains the codegen in the libraries array.
    If possible, replace it with a single object.
  
[Codegen] BEFORE:
    {
      // ...
      "codegenConfig": {
        "libraries": [
          {
            "name": "libName1",
            "type": "all|components|modules",
            "jsSrcsRoot": "libName1/js"
          },
          {
            "name": "libName2",
            "type": "all|components|modules",
            "jsSrcsRoot": "libName2/src"
          }
        ]
      }
    }

    AFTER:
    {
      "codegenConfig": {
        "name": "libraries",
        "type": "all",
        "jsSrcsRoot": "."
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants