react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

Build error at ImageCompressor.swift file - Cannot find 'RCTResizeMode' in scope

Open danielekpa opened this issue 1 year ago • 2 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-compressor/ios/Compressor-Bridging-Header.h b/node_modules/react-native-compressor/ios/Compressor-Bridging-Header.h
index b85cffd..a2bbf7a 100644
--- a/node_modules/react-native-compressor/ios/Compressor-Bridging-Header.h
+++ b/node_modules/react-native-compressor/ios/Compressor-Bridging-Header.h
@@ -2,5 +2,6 @@
 //  Use this file to import your target's public headers that you would like to expose to Swift.
 //
 #import <React/RCTBridgeModule.h>
+#import <React/RCTResizeMode.h>
 #import <React/RCTEventEmitter.h>
 #import <Foundation/Foundation.h>

This issue body was partially generated by patch-package.

danielekpa avatar Dec 13 '23 08:12 danielekpa

👋 @danielekpa Thanks for opening your issue here! If you find this package useful hit the star🌟!

github-actions[bot] avatar Dec 13 '23 08:12 github-actions[bot]

Please marge this fixes. I have installed the latest module but it is still happenig.

guruatdigni avatar Jan 31 '24 02:01 guruatdigni