react-native-image-resizer icon indicating copy to clipboard operation
react-native-image-resizer copied to clipboard

fix: update codegen config

Open radko93 opened this issue 1 year ago • 0 comments

When running a project with RN 0.75 following is printed:

[Codegen] Found @bam.tech/react-native-image-resizer
[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": "."
      }
    }
    ```

radko93 avatar Sep 03 '24 17:09 radko93