react-native-image-resizer
react-native-image-resizer copied to clipboard
fix: update codegen config
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": "."
}
}
```