blob: 21d65b5855f1a15b745a310726ff917df933136f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
|