react-native-google-maps-plus 1.3.0-dev.4 → 1.3.0-dev.6
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/android/build.gradle +1 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +15 -23
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +4 -3
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +11 -7
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -10
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +6 -4
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +8 -5
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngExtension.kt +6 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNCameraExtension.kt +1 -2
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngExtension.kt +6 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +8 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +2 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +1 -0
- package/ios/GoogleMapViewImpl.swift +18 -49
- package/ios/MapCircleBuilder.swift +2 -10
- package/ios/MapMarkerBuilder.swift +12 -10
- package/ios/MapPolygonBuilder.swift +17 -2
- package/ios/MapPolylineBuilder.swift +4 -2
- package/ios/RNGoogleMapsPlusView.swift +7 -5
- package/ios/extensions/CLLocationCoordinate2D+Extension.swift +7 -0
- package/ios/extensions/RNLatLng+Extension.swift +7 -0
- package/ios/extensions/RNMarker+Extension.swift +5 -0
- package/ios/extensions/RNPolygon+Extension.swift.swift +16 -1
- package/ios/extensions/RNPolyline+Extension.swift.swift +1 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/types.d.ts +8 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +4 -0
- package/nitrogen/generated/android/c++/JRNMarker.hpp +8 -0
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +29 -2
- package/nitrogen/generated/android/c++/JRNPolygonHole.hpp +72 -0
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +4 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +7 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygonHole.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +3 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -16
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +51 -20
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +6 -3
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +7 -56
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -8
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +11 -15
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
- package/nitrogen/generated/ios/swift/RNMarker.swift +47 -15
- package/nitrogen/generated/ios/swift/RNPolygon.swift +66 -1
- package/nitrogen/generated/ios/swift/RNPolygonHole.swift +47 -0
- package/nitrogen/generated/ios/swift/RNPolyline.swift +24 -1
- package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -8
- package/nitrogen/generated/shared/c++/RNAndroidLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNCamera.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNCircle.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmap.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNKMLayer.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLatLng.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocation.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocationConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapPadding.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNMarker.hpp +17 -1
- package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNPolygon.hpp +21 -2
- package/nitrogen/generated/shared/c++/RNPolygonHole.hpp +77 -0
- package/nitrogen/generated/shared/c++/RNPolyline.hpp +13 -1
- package/nitrogen/generated/shared/c++/RNPosition.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNRegion.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNSize.hpp +8 -0
- package/nitrogen/generated/shared/c++/RNSnapshotOptions.hpp +8 -0
- package/package.json +4 -4
- package/src/types.ts +9 -0
|
@@ -18,7 +18,7 @@ public extension RNMarker {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNMarker`.
|
|
20
20
|
*/
|
|
21
|
-
init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, iconSvg: RNMarkerSvg?) {
|
|
21
|
+
init(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Bool?, title: String?, snippet: String?, opacity: Double?, flat: Bool?, draggable: Bool?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?) {
|
|
22
22
|
self.init(std.string(id), { () -> bridge.std__optional_double_ in
|
|
23
23
|
if let __unwrappedValue = zIndex {
|
|
24
24
|
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
@@ -67,6 +67,18 @@ public extension RNMarker {
|
|
|
67
67
|
} else {
|
|
68
68
|
return .init()
|
|
69
69
|
}
|
|
70
|
+
}(), { () -> bridge.std__optional_double_ in
|
|
71
|
+
if let __unwrappedValue = rotation {
|
|
72
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
73
|
+
} else {
|
|
74
|
+
return .init()
|
|
75
|
+
}
|
|
76
|
+
}(), { () -> bridge.std__optional_RNPosition_ in
|
|
77
|
+
if let __unwrappedValue = infoWindowAnchor {
|
|
78
|
+
return bridge.create_std__optional_RNPosition_(__unwrappedValue)
|
|
79
|
+
} else {
|
|
80
|
+
return .init()
|
|
81
|
+
}
|
|
70
82
|
}(), { () -> bridge.std__optional_RNMarkerSvg_ in
|
|
71
83
|
if let __unwrappedValue = iconSvg {
|
|
72
84
|
return bridge.create_std__optional_RNMarkerSvg_(__unwrappedValue)
|
|
@@ -118,14 +130,7 @@ public extension RNMarker {
|
|
|
118
130
|
var anchor: RNPosition? {
|
|
119
131
|
@inline(__always)
|
|
120
132
|
get {
|
|
121
|
-
return
|
|
122
|
-
if bridge.has_value_std__optional_RNPosition_(self.__anchor) {
|
|
123
|
-
let __unwrapped = bridge.get_std__optional_RNPosition_(self.__anchor)
|
|
124
|
-
return __unwrapped
|
|
125
|
-
} else {
|
|
126
|
-
return nil
|
|
127
|
-
}
|
|
128
|
-
}()
|
|
133
|
+
return self.__anchor.value
|
|
129
134
|
}
|
|
130
135
|
@inline(__always)
|
|
131
136
|
set {
|
|
@@ -255,18 +260,45 @@ public extension RNMarker {
|
|
|
255
260
|
}
|
|
256
261
|
}
|
|
257
262
|
|
|
258
|
-
var
|
|
263
|
+
var rotation: Double? {
|
|
259
264
|
@inline(__always)
|
|
260
265
|
get {
|
|
261
|
-
return
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
return self.__rotation.value
|
|
267
|
+
}
|
|
268
|
+
@inline(__always)
|
|
269
|
+
set {
|
|
270
|
+
self.__rotation = { () -> bridge.std__optional_double_ in
|
|
271
|
+
if let __unwrappedValue = newValue {
|
|
272
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
265
273
|
} else {
|
|
266
|
-
return
|
|
274
|
+
return .init()
|
|
267
275
|
}
|
|
268
276
|
}()
|
|
269
277
|
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
var infoWindowAnchor: RNPosition? {
|
|
281
|
+
@inline(__always)
|
|
282
|
+
get {
|
|
283
|
+
return self.__infoWindowAnchor.value
|
|
284
|
+
}
|
|
285
|
+
@inline(__always)
|
|
286
|
+
set {
|
|
287
|
+
self.__infoWindowAnchor = { () -> bridge.std__optional_RNPosition_ in
|
|
288
|
+
if let __unwrappedValue = newValue {
|
|
289
|
+
return bridge.create_std__optional_RNPosition_(__unwrappedValue)
|
|
290
|
+
} else {
|
|
291
|
+
return .init()
|
|
292
|
+
}
|
|
293
|
+
}()
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
var iconSvg: RNMarkerSvg? {
|
|
298
|
+
@inline(__always)
|
|
299
|
+
get {
|
|
300
|
+
return self.__iconSvg.value
|
|
301
|
+
}
|
|
270
302
|
@inline(__always)
|
|
271
303
|
set {
|
|
272
304
|
self.__iconSvg = { () -> bridge.std__optional_RNMarkerSvg_ in
|
|
@@ -18,7 +18,7 @@ public extension RNPolygon {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNPolygon`.
|
|
20
20
|
*/
|
|
21
|
-
init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], fillColor: String?, strokeColor: String?, strokeWidth: Double?) {
|
|
21
|
+
init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], fillColor: String?, strokeColor: String?, strokeWidth: Double?, holes: [RNPolygonHole]?, geodesic: Bool?) {
|
|
22
22
|
self.init(std.string(id), { () -> bridge.std__optional_double_ in
|
|
23
23
|
if let __unwrappedValue = zIndex {
|
|
24
24
|
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
@@ -55,6 +55,24 @@ public extension RNPolygon {
|
|
|
55
55
|
} else {
|
|
56
56
|
return .init()
|
|
57
57
|
}
|
|
58
|
+
}(), { () -> bridge.std__optional_std__vector_RNPolygonHole__ in
|
|
59
|
+
if let __unwrappedValue = holes {
|
|
60
|
+
return bridge.create_std__optional_std__vector_RNPolygonHole__({ () -> bridge.std__vector_RNPolygonHole_ in
|
|
61
|
+
var __vector = bridge.create_std__vector_RNPolygonHole_(__unwrappedValue.count)
|
|
62
|
+
for __item in __unwrappedValue {
|
|
63
|
+
__vector.push_back(__item)
|
|
64
|
+
}
|
|
65
|
+
return __vector
|
|
66
|
+
}())
|
|
67
|
+
} else {
|
|
68
|
+
return .init()
|
|
69
|
+
}
|
|
70
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
71
|
+
if let __unwrappedValue = geodesic {
|
|
72
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
73
|
+
} else {
|
|
74
|
+
return .init()
|
|
75
|
+
}
|
|
58
76
|
}())
|
|
59
77
|
}
|
|
60
78
|
|
|
@@ -184,4 +202,51 @@ public extension RNPolygon {
|
|
|
184
202
|
}()
|
|
185
203
|
}
|
|
186
204
|
}
|
|
205
|
+
|
|
206
|
+
var holes: [RNPolygonHole]? {
|
|
207
|
+
@inline(__always)
|
|
208
|
+
get {
|
|
209
|
+
return { () -> [RNPolygonHole]? in
|
|
210
|
+
if bridge.has_value_std__optional_std__vector_RNPolygonHole__(self.__holes) {
|
|
211
|
+
let __unwrapped = bridge.get_std__optional_std__vector_RNPolygonHole__(self.__holes)
|
|
212
|
+
return __unwrapped.map({ __item in __item })
|
|
213
|
+
} else {
|
|
214
|
+
return nil
|
|
215
|
+
}
|
|
216
|
+
}()
|
|
217
|
+
}
|
|
218
|
+
@inline(__always)
|
|
219
|
+
set {
|
|
220
|
+
self.__holes = { () -> bridge.std__optional_std__vector_RNPolygonHole__ in
|
|
221
|
+
if let __unwrappedValue = newValue {
|
|
222
|
+
return bridge.create_std__optional_std__vector_RNPolygonHole__({ () -> bridge.std__vector_RNPolygonHole_ in
|
|
223
|
+
var __vector = bridge.create_std__vector_RNPolygonHole_(__unwrappedValue.count)
|
|
224
|
+
for __item in __unwrappedValue {
|
|
225
|
+
__vector.push_back(__item)
|
|
226
|
+
}
|
|
227
|
+
return __vector
|
|
228
|
+
}())
|
|
229
|
+
} else {
|
|
230
|
+
return .init()
|
|
231
|
+
}
|
|
232
|
+
}()
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
var geodesic: Bool? {
|
|
237
|
+
@inline(__always)
|
|
238
|
+
get {
|
|
239
|
+
return self.__geodesic.value
|
|
240
|
+
}
|
|
241
|
+
@inline(__always)
|
|
242
|
+
set {
|
|
243
|
+
self.__geodesic = { () -> bridge.std__optional_bool_ in
|
|
244
|
+
if let __unwrappedValue = newValue {
|
|
245
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
246
|
+
} else {
|
|
247
|
+
return .init()
|
|
248
|
+
}
|
|
249
|
+
}()
|
|
250
|
+
}
|
|
251
|
+
}
|
|
187
252
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNPolygonHole.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `RNPolygonHole`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias RNPolygonHole = margelo.nitro.rngooglemapsplus.RNPolygonHole
|
|
14
|
+
|
|
15
|
+
public extension RNPolygonHole {
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `RNPolygonHole`.
|
|
20
|
+
*/
|
|
21
|
+
init(coordinates: [RNLatLng]) {
|
|
22
|
+
self.init({ () -> bridge.std__vector_RNLatLng_ in
|
|
23
|
+
var __vector = bridge.create_std__vector_RNLatLng_(coordinates.count)
|
|
24
|
+
for __item in coordinates {
|
|
25
|
+
__vector.push_back(__item)
|
|
26
|
+
}
|
|
27
|
+
return __vector
|
|
28
|
+
}())
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var coordinates: [RNLatLng] {
|
|
32
|
+
@inline(__always)
|
|
33
|
+
get {
|
|
34
|
+
return self.__coordinates.map({ __item in __item })
|
|
35
|
+
}
|
|
36
|
+
@inline(__always)
|
|
37
|
+
set {
|
|
38
|
+
self.__coordinates = { () -> bridge.std__vector_RNLatLng_ in
|
|
39
|
+
var __vector = bridge.create_std__vector_RNLatLng_(newValue.count)
|
|
40
|
+
for __item in newValue {
|
|
41
|
+
__vector.push_back(__item)
|
|
42
|
+
}
|
|
43
|
+
return __vector
|
|
44
|
+
}()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -18,7 +18,7 @@ public extension RNPolyline {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `RNPolyline`.
|
|
20
20
|
*/
|
|
21
|
-
init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], lineCap: RNLineCapType?, lineJoin: RNLineJoinType?, color: String?, width: Double?) {
|
|
21
|
+
init(id: String, zIndex: Double?, pressable: Bool?, coordinates: [RNLatLng], lineCap: RNLineCapType?, lineJoin: RNLineJoinType?, geodesic: Bool?, color: String?, width: Double?) {
|
|
22
22
|
self.init(std.string(id), { () -> bridge.std__optional_double_ in
|
|
23
23
|
if let __unwrappedValue = zIndex {
|
|
24
24
|
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
@@ -49,6 +49,12 @@ public extension RNPolyline {
|
|
|
49
49
|
} else {
|
|
50
50
|
return .init()
|
|
51
51
|
}
|
|
52
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
53
|
+
if let __unwrappedValue = geodesic {
|
|
54
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
55
|
+
} else {
|
|
56
|
+
return .init()
|
|
57
|
+
}
|
|
52
58
|
}(), { () -> bridge.std__optional_std__string_ in
|
|
53
59
|
if let __unwrappedValue = color {
|
|
54
60
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
@@ -160,6 +166,23 @@ public extension RNPolyline {
|
|
|
160
166
|
}
|
|
161
167
|
}
|
|
162
168
|
|
|
169
|
+
var geodesic: Bool? {
|
|
170
|
+
@inline(__always)
|
|
171
|
+
get {
|
|
172
|
+
return self.__geodesic.value
|
|
173
|
+
}
|
|
174
|
+
@inline(__always)
|
|
175
|
+
set {
|
|
176
|
+
self.__geodesic = { () -> bridge.std__optional_bool_ in
|
|
177
|
+
if let __unwrappedValue = newValue {
|
|
178
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
179
|
+
} else {
|
|
180
|
+
return .init()
|
|
181
|
+
}
|
|
182
|
+
}()
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
163
186
|
var color: String? {
|
|
164
187
|
@inline(__always)
|
|
165
188
|
get {
|
|
@@ -31,14 +31,7 @@ public extension RNSnapshotOptions {
|
|
|
31
31
|
var size: RNSize? {
|
|
32
32
|
@inline(__always)
|
|
33
33
|
get {
|
|
34
|
-
return
|
|
35
|
-
if bridge.has_value_std__optional_RNSize_(self.__size) {
|
|
36
|
-
let __unwrapped = bridge.get_std__optional_RNSize_(self.__size)
|
|
37
|
-
return __unwrapped
|
|
38
|
-
} else {
|
|
39
|
-
return nil
|
|
40
|
-
}
|
|
41
|
-
}()
|
|
34
|
+
return self.__size.value
|
|
42
35
|
}
|
|
43
36
|
@inline(__always)
|
|
44
37
|
set {
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
|
|
@@ -67,6 +72,9 @@ namespace margelo::nitro {
|
|
|
67
72
|
return false;
|
|
68
73
|
}
|
|
69
74
|
jsi::Object obj = value.getObject(runtime);
|
|
75
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
70
78
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority>>::canConvert(runtime, obj.getProperty(runtime, "priority"))) return false;
|
|
71
79
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "interval"))) return false;
|
|
72
80
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "minUpdateInterval"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
@@ -70,6 +75,9 @@ namespace margelo::nitro {
|
|
|
70
75
|
return false;
|
|
71
76
|
}
|
|
72
77
|
jsi::Object obj = value.getObject(runtime);
|
|
78
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
73
81
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
|
|
74
82
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zoom"))) return false;
|
|
75
83
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "bearing"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
@@ -83,6 +88,9 @@ namespace margelo::nitro {
|
|
|
83
88
|
return false;
|
|
84
89
|
}
|
|
85
90
|
jsi::Object obj = value.getObject(runtime);
|
|
91
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
86
94
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
|
|
87
95
|
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "pressable"))) return false;
|
|
88
96
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNHeatmapPoint` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
@@ -84,6 +89,9 @@ namespace margelo::nitro {
|
|
|
84
89
|
return false;
|
|
85
90
|
}
|
|
86
91
|
jsi::Object obj = value.getObject(runtime);
|
|
92
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
87
95
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
|
|
88
96
|
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "pressable"))) return false;
|
|
89
97
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -66,6 +71,9 @@ namespace margelo::nitro {
|
|
|
66
71
|
return false;
|
|
67
72
|
}
|
|
68
73
|
jsi::Object obj = value.getObject(runtime);
|
|
74
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
69
77
|
if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, "colors"))) return false;
|
|
70
78
|
if (!JSIConverter<std::vector<double>>::canConvert(runtime, obj.getProperty(runtime, "startPoints"))) return false;
|
|
71
79
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "colorMapSize"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -65,6 +70,9 @@ namespace margelo::nitro {
|
|
|
65
70
|
return false;
|
|
66
71
|
}
|
|
67
72
|
jsi::Object obj = value.getObject(runtime);
|
|
73
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
68
76
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "latitude"))) return false;
|
|
69
77
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "longitude"))) return false;
|
|
70
78
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "weight"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
@@ -64,6 +69,9 @@ namespace margelo::nitro {
|
|
|
64
69
|
return false;
|
|
65
70
|
}
|
|
66
71
|
jsi::Object obj = value.getObject(runtime);
|
|
72
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
67
75
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::canConvert(runtime, obj.getProperty(runtime, "desiredAccuracy"))) return false;
|
|
68
76
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "distanceFilterMeters"))) return false;
|
|
69
77
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
@@ -71,6 +76,9 @@ namespace margelo::nitro {
|
|
|
71
76
|
return false;
|
|
72
77
|
}
|
|
73
78
|
jsi::Object obj = value.getObject(runtime);
|
|
79
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
74
82
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "activeLevelIndex"))) return false;
|
|
75
83
|
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "defaultLevelIndex"))) return false;
|
|
76
84
|
if (!JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNIndoorLevel>>::canConvert(runtime, obj.getProperty(runtime, "levels"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -69,6 +74,9 @@ namespace margelo::nitro {
|
|
|
69
74
|
return false;
|
|
70
75
|
}
|
|
71
76
|
jsi::Object obj = value.getObject(runtime);
|
|
77
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
72
80
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "index"))) return false;
|
|
73
81
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "name"))) return false;
|
|
74
82
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "shortName"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
@@ -68,6 +73,9 @@ namespace margelo::nitro {
|
|
|
68
73
|
return false;
|
|
69
74
|
}
|
|
70
75
|
jsi::Object obj = value.getObject(runtime);
|
|
76
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
71
79
|
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "mapId"))) return false;
|
|
72
80
|
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "liteMode"))) return false;
|
|
73
81
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::canConvert(runtime, obj.getProperty(runtime, "camera"))) return false;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
|
|
66
74
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "kmlString"))) return false;
|
|
67
75
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -62,6 +67,9 @@ namespace margelo::nitro {
|
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
64
69
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
65
73
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "latitude"))) return false;
|
|
66
74
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "longitude"))) return false;
|
|
67
75
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
@@ -63,6 +68,9 @@ namespace margelo::nitro {
|
|
|
63
68
|
return false;
|
|
64
69
|
}
|
|
65
70
|
jsi::Object obj = value.getObject(runtime);
|
|
71
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
66
74
|
if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "northEast"))) return false;
|
|
67
75
|
if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "southWest"))) return false;
|
|
68
76
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
@@ -63,6 +68,9 @@ namespace margelo::nitro {
|
|
|
63
68
|
return false;
|
|
64
69
|
}
|
|
65
70
|
jsi::Object obj = value.getObject(runtime);
|
|
71
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
66
74
|
if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
|
|
67
75
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "bearing"))) return false;
|
|
68
76
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
|
|
@@ -67,6 +72,9 @@ namespace margelo::nitro {
|
|
|
67
72
|
return false;
|
|
68
73
|
}
|
|
69
74
|
jsi::Object obj = value.getObject(runtime);
|
|
75
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
70
78
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig>>::canConvert(runtime, obj.getProperty(runtime, "android"))) return false;
|
|
71
79
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationConfig>>::canConvert(runtime, obj.getProperty(runtime, "ios"))) return false;
|
|
72
80
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
22
27
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
@@ -67,6 +72,9 @@ namespace margelo::nitro {
|
|
|
67
72
|
return false;
|
|
68
73
|
}
|
|
69
74
|
jsi::Object obj = value.getObject(runtime);
|
|
75
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
70
78
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "android"))) return false;
|
|
71
79
|
if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSPermissionResult>>::canConvert(runtime, obj.getProperty(runtime, "ios"))) return false;
|
|
72
80
|
return true;
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
@@ -68,6 +73,9 @@ namespace margelo::nitro {
|
|
|
68
73
|
return false;
|
|
69
74
|
}
|
|
70
75
|
jsi::Object obj = value.getObject(runtime);
|
|
76
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
71
79
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "top"))) return false;
|
|
72
80
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "left"))) return false;
|
|
73
81
|
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "bottom"))) return false;
|