mirror of
https://github.com/status-im/waku-react-native.git
synced 2025-01-10 05:55:55 +00:00
16 lines
466 B
Swift
16 lines
466 B
Swift
import Gowaku
|
|
|
|
@objc(ReactNative)
|
|
class ReactNative: NSObject {
|
|
|
|
@objc(multiply:withB:withResolver:withRejecter:)
|
|
func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
|
|
resolve(a*b)
|
|
}
|
|
|
|
@objc(defaultPubsubTopic:withRejecter:)
|
|
func defaultPubsubTopic(_ resolve:RCTPromiseResolveBlock, withRejecter reject:RCTPromiseRejectBlock) -> Void {
|
|
resolve(GowakuDefaultPubsubTopic())
|
|
}
|
|
}
|