From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- .../ios/ReactNativeIOSLibrary/TS28BProfileModule.m | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m new file mode 100644 index 0000000..21d65b5 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m @@ -0,0 +1,40 @@ +// +// TS28BProfileModule.m +// ReactNativeIOSLibrary +// +// Created by user on 2019/11/14. +// Copyright © 2019 daiqingquan. All rights reserved. +// + +#import "TS28BProfileModule.h" + +@implementation TS28BProfileModule + + +RCT_EXPORT_MODULE() + +#pragma mark +#pragma mark - constantsToExport + + +- (NSDictionary *)constantsToExport +{ + return @{ + @"ACTION_MEASUREMENT_RESULT":@"action_measurement_result", + TS28B_ACTION:@"action", + TS28B_DEVICE:@"device", + TS28B_KEY_MAC:@"mac", + kACTION_GET_ALL_CONNECTED_DEVICES:kACTION_GET_ALL_CONNECTED_DEVICES, + TS28B_RESULT:@"result", + TS28B_UNIT_FLAG:@"unit_flag", + TS28B_THERMOMETER_TYPE:@"thermometer_type" + }; +}; + + ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} + +@end -- cgit