@pulseboard/react-native 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ios/PulseBoardDevice.h
CHANGED
package/ios/PulseBoardDevice.mm
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
- (void)getDeviceInfo:(RCTPromiseResolveBlock)resolve
|
|
21
|
-
|
|
21
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
22
22
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
23
23
|
UIDevice *device = [UIDevice currentDevice];
|
|
24
24
|
CGRect screen = [UIScreen mainScreen].bounds;
|
package/ios/PulseBoardNetwork.h
CHANGED
package/ios/PulseBoardNetwork.mm
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
- (void)getNetworkInfo:(RCTPromiseResolveBlock)resolve
|
|
26
|
-
|
|
26
|
+
reject:(RCTPromiseRejectBlock)reject {
|
|
27
27
|
nw_path_monitor_t monitor = nw_path_monitor_create();
|
|
28
28
|
dispatch_queue_t queue = dispatch_queue_create(
|
|
29
29
|
"com.pulseboard.network", DISPATCH_QUEUE_SERIAL);
|