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/PO1ProfileModule.m | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m new file mode 100755 index 0000000..fee17dc --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/PO1ProfileModule.m @@ -0,0 +1,58 @@ +// +// POProfileModule.m +// ReactNativeIOSLibrary +// +// Created by daiqingquan on 2016/12/4. +// Copyright © 2016年 daiqingquan. All rights reserved. +// + +#import "PO1ProfileModule.h" + +@implementation PO1ProfileModule + + +RCT_EXPORT_MODULE() + +#pragma mark +#pragma mark - constantsToExport + + +- (NSDictionary *)constantsToExport +{ + return @{ + @"ACTION_GET_BATTERY":@"ACTION_GET_BATTERY", + + @"ACTION_BO_MEASUREMENT":@"ACTION_BO_MEASUREMENT", + + @"ACTION_ERROR_PO1":@"ACTION_ERROR_PO1", + + @"ACTION_GET_ALL_CONNECTED_DEVICES":@"ACTION_GET_ALL_CONNECTED_DEVICES", + + @"BATTERY":@"BATTERY", + + @"ERROR_DESCRIPTION":@"ERROR_DESCRIPTION", + + @"ERROR_ID":@"ERROR_ID", + + @"STATUS":@"STATUS", + + @"BLOOD_OXYGEN":@"BLOOD_OXYGEN", + + @"PULSE":@"PULSE", + + @"PULSE_FORCE":@"PULSE_FORCE", + + @"PI":@"PI", + + @"WAVE":@"WAVE", + + }; +}; + + ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} + +@end -- cgit