Skip to content

iOS: CodegenConfig Deprecated Setup for @bam.tech/react-native-image-resizer #413

@short-dsb

Description

@short-dsb

Thanks for your work on this project! Not sure when this will become a problem versus just a warning, but wanted to flag it here since I didn’t see an existing issue for it.

Describe the bug
Deprecation warning when running pod install with React Native v0.75.4.

To Reproduce
Steps to reproduce the behavior:

  1. cd ios
  2. pod install

Observed behavior

[Codegen] CodegenConfig Deprecated Setup for @bam.tech/react-native-image-resizer.
    The configuration file still contains the codegen in the libraries array.
    If possible, replace it with a single object.

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": "."
      }
    }

Expected behavior
No deprecation warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions