[ad_1]
I am new to swift and objective-c and seeking help.
I have a swift class file that needs to use 2 methods however I am not sure how
@objc(ReactNativeMidiModule)
class ReactNativeMidiModule: (ObservableObject, RCTEventEmitter){
//code...
}
I need this class to use both ObservableObject, RCTEventEmitter. I am now sure if that can be done or how to do it as I get the following error
Inheritance from non-protocol, non-class type '(ObservableObject, RCTEventEmitter)'
Only classes that inherit from NSObject can be declared @objc
[ad_2]