Closed gtokman closed 2 months ago
As a work around assigning a callback like this works:
final public class Callback: HybridCallbackSpec {
public var notify: ((AnyMapHolder) -> Void)?
public var hybridContext = margelo.nitro.HybridContext()
public var memorySize: Int {
return getSizeOf(self)
}
public func onEvent(notify: @escaping ((AnyMapHolder) -> Void)) {
self.notify = notify
}
}
Description
When adding a callback function to the interface and running nitrogen, I get a compiler error on iOS.
Causes an error in the
HybridCallbackSpecCxx
codegen file:Seems like we need something like this and maybe expose the
AnyMap
type: