react-native-bt-device/ios/BtDevice.mm

20 lines
391 B
Plaintext
Raw Permalink Normal View History

2024-03-24 09:45:44 +00:00
#import "BtDevice.h"
@implementation BtDevice
RCT_EXPORT_MODULE()
// Example method
// See // https://reactnative.dev/docs/native-modules-ios
RCT_EXPORT_METHOD(multiply:(double)a
b:(double)b
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject)
{
NSNumber *result = @(a + b);
resolve(result);
}
@end