@expofp/react-native-efp-crowdconnected 0.1.4 → 0.1.5
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.
|
@@ -16,11 +16,14 @@ import React
|
|
|
16
16
|
import UIKit
|
|
17
17
|
|
|
18
18
|
// See example https://github.com/nathvarun/react-native-native-module-swift-tutorial/blob/master/ios/Counter.swift
|
|
19
|
+
@MainActor
|
|
19
20
|
@objc(RCTCrowdConnectedLocationProvider)
|
|
20
21
|
class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDelegate, CrowdConnectedDelegate {
|
|
21
22
|
|
|
22
23
|
// MARK: - Properties
|
|
23
24
|
|
|
25
|
+
override var methodQueue: DispatchQueue! { .main }
|
|
26
|
+
|
|
24
27
|
private let locationEventName = "onLocationChange"
|
|
25
28
|
private let locationErrorName = "onLocationError"
|
|
26
29
|
|
|
@@ -43,6 +46,8 @@ class RCTCrowdConnectedLocationProvider: RCTEventEmitter, CLLocationManagerDeleg
|
|
|
43
46
|
[locationEventName, locationErrorName]
|
|
44
47
|
}
|
|
45
48
|
|
|
49
|
+
@objc override static func requiresMainQueueSetup() -> Bool { true }
|
|
50
|
+
|
|
46
51
|
@objc func setup(
|
|
47
52
|
_ settings: NSDictionary,
|
|
48
53
|
resolver resolve: @escaping RCTPromiseResolveBlock,
|