I'm having trouble using nitro image in another nitro module. I've followed the instructions here and have successfully used NitroImage in android, but on iOS when trying to implement HybridImageSpec, xcode is giving the following error:
Type 'HybridUIImage' cannot conform to protocol 'HybridImageSpec_protocol' because it has requirements that cannot be satisfied
Here is the implementation (this is ripped straight from react-native-vision-camera).
import AVFoundation
import Foundation
import NitroImage
import NitroModules
internal final class HybridUIImage: HybridImageSpec, NativeImage {
let uiImage: UIImage
init(uiImage: UIImage) {
self.uiImage = uiImage
}
}
Did I miss a step/config? Any help would be much appreciated.
versions being used:
"react-native-nitro-image": "^0.14.0",
"react-native-nitro-modules": "^0.35.6",
I'm having trouble using nitro image in another nitro module. I've followed the instructions here and have successfully used NitroImage in android, but on iOS when trying to implement HybridImageSpec, xcode is giving the following error:
Type 'HybridUIImage' cannot conform to protocol 'HybridImageSpec_protocol' because it has requirements that cannot be satisfiedHere is the implementation (this is ripped straight from react-native-vision-camera).
Did I miss a step/config? Any help would be much appreciated.
versions being used: