summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m')
-rw-r--r--libs/ihealth-sdk/ios/ReactNativeIOSLibrary/TS28BProfileModule.m40
1 files changed, 40 insertions, 0 deletions
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 @@
1//
2// TS28BProfileModule.m
3// ReactNativeIOSLibrary
4//
5// Created by user on 2019/11/14.
6// Copyright © 2019 daiqingquan. All rights reserved.
7//
8
9#import "TS28BProfileModule.h"
10
11@implementation TS28BProfileModule
12
13
14RCT_EXPORT_MODULE()
15
16#pragma mark
17#pragma mark - constantsToExport
18
19
20- (NSDictionary *)constantsToExport
21{
22 return @{
23 @"ACTION_MEASUREMENT_RESULT":@"action_measurement_result",
24 TS28B_ACTION:@"action",
25 TS28B_DEVICE:@"device",
26 TS28B_KEY_MAC:@"mac",
27 kACTION_GET_ALL_CONNECTED_DEVICES:kACTION_GET_ALL_CONNECTED_DEVICES,
28 TS28B_RESULT:@"result",
29 TS28B_UNIT_FLAG:@"unit_flag",
30 TS28B_THERMOMETER_TYPE:@"thermometer_type"
31 };
32};
33
34
35+ (BOOL)requiresMainQueueSetup
36{
37 return YES;
38}
39
40@end