react-native-compressor
react-native-compressor copied to clipboard
Build error at ImageCompressor.swift file - Cannot find 'RCTResizeMode' in scope
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 Thanks for opening your issue here! If you find this package useful hit the star🌟!
Please marge this fixes. I have installed the latest module but it is still happenig.