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

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

Open short-dsb opened this issue 1 year ago • 2 comments

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.

short-dsb avatar Oct 02 '24 20:10 short-dsb

+1, also seeing this after bumping to 3.0.10, on RN 0.75.4

johnnywang avatar Oct 10 '24 23:10 johnnywang

Try this patch (it's in a format of patch-package)

diff --git a/node_modules/@bam.tech/react-native-image-resizer/package.json b/node_modules/@bam.tech/react-native-image-resizer/package.json
index 7a73b6e..2033e59 100644
--- a/node_modules/@bam.tech/react-native-image-resizer/package.json
+++ b/node_modules/@bam.tech/react-native-image-resizer/package.json
@@ -169,12 +169,8 @@
     ]
   },
   "codegenConfig": {
-    "libraries": [
-      {
-        "name": "RNImageResizerSpec",
-        "type": "modules",
-        "jsSrcsDir": "src"
-      }
-    ]
+    "name": "RNImageResizerSpec",
+    "type": "modules",
+    "jsSrcsDir": "src"
   }
 }

Barteque avatar Oct 14 '24 14:10 Barteque

when I can expect this code change to get merged?

ravindraguptacapgemini avatar Oct 22 '24 05:10 ravindraguptacapgemini

fixed by: https://github.com/bamlab/react-native-image-resizer/pull/409 This issue can be closed I think.

freeboub avatar Dec 22 '24 23:12 freeboub

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 21 '25 06:02 stale[bot]

This issue has been automatically closed. Thank you for your contributions.

stale[bot] avatar Mar 01 '25 01:03 stale[bot]