diff --git a/package.json b/package.json index 7a73b6e0..2033e591 100644 --- a/package.json +++ b/package.json @@ -169,12 +169,8 @@ ] }, "codegenConfig": { - "libraries": [ - { - "name": "RNImageResizerSpec", - "type": "modules", - "jsSrcsDir": "src" - } - ] + "name": "RNImageResizerSpec", + "type": "modules", + "jsSrcsDir": "src" } } diff --git a/react-native-image-resizer.podspec b/react-native-image-resizer.podspec index c7ba7d9e..1848ae8b 100644 --- a/react-native-image-resizer.podspec +++ b/react-native-image-resizer.podspec @@ -16,7 +16,6 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,mm}" - s.dependency "React-Core" s.ios.framework = 'AssetsLibrary', 'MobileCoreServices' # Don't install the dependencies when we run `pod install` in the old architecture. @@ -32,6 +31,9 @@ Pod::Spec.new do |s| s.dependency "RCTRequired" s.dependency "RCTTypeSafety" s.dependency "ReactCommon/turbomodule/core" + install_modules_dependencies(s) + else + s.dependency "React-Core" end end