Skip to content

Commit 36ef1a9

Browse files
authored
fix: update codegen config (#409)
* feat: update codeine config * fix: update pod spec for new archictecture
1 parent 689aee7 commit 36ef1a9

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,8 @@
169169
]
170170
},
171171
"codegenConfig": {
172-
"libraries": [
173-
{
174-
"name": "RNImageResizerSpec",
175-
"type": "modules",
176-
"jsSrcsDir": "src"
177-
}
178-
]
172+
"name": "RNImageResizerSpec",
173+
"type": "modules",
174+
"jsSrcsDir": "src"
179175
}
180176
}

react-native-image-resizer.podspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Pod::Spec.new do |s|
1616

1717
s.source_files = "ios/**/*.{h,m,mm}"
1818

19-
s.dependency "React-Core"
2019
s.ios.framework = 'AssetsLibrary', 'MobileCoreServices'
2120

2221
# Don't install the dependencies when we run `pod install` in the old architecture.
@@ -32,6 +31,9 @@ Pod::Spec.new do |s|
3231
s.dependency "RCTRequired"
3332
s.dependency "RCTTypeSafety"
3433
s.dependency "ReactCommon/turbomodule/core"
34+
install_modules_dependencies(s)
35+
else
36+
s.dependency "React-Core"
3537
end
3638
end
3739

0 commit comments

Comments
 (0)