react-native-google-maps-plus 1.3.0 → 1.4.1

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.
Files changed (82) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +15 -23
  3. package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +33 -9
  4. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +73 -18
  5. package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +59 -12
  6. package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +47 -12
  7. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +12 -9
  8. package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngExtension.kt +6 -0
  9. package/android/src/main/java/com/rngooglemapsplus/extensions/RNCameraExtension.kt +1 -2
  10. package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngExtension.kt +6 -0
  11. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +8 -0
  12. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +2 -0
  13. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +1 -0
  14. package/ios/GoogleMapViewImpl.swift +18 -49
  15. package/ios/MapCircleBuilder.swift +30 -18
  16. package/ios/MapMarkerBuilder.swift +64 -20
  17. package/ios/MapPolygonBuilder.swift +62 -13
  18. package/ios/MapPolylineBuilder.swift +33 -15
  19. package/ios/RNGoogleMapsPlusView.swift +10 -8
  20. package/ios/extensions/CLLocationCoordinate2D+Extension.swift +7 -0
  21. package/ios/extensions/RNLatLng+Extension.swift +7 -0
  22. package/ios/extensions/RNMarker+Extension.swift +5 -0
  23. package/ios/extensions/RNPolygon+Extension.swift.swift +16 -1
  24. package/ios/extensions/RNPolyline+Extension.swift.swift +1 -0
  25. package/lib/module/types.js.map +1 -1
  26. package/lib/typescript/src/types.d.ts +8 -0
  27. package/lib/typescript/src/types.d.ts.map +1 -1
  28. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +4 -0
  29. package/nitrogen/generated/android/c++/JRNMarker.hpp +8 -0
  30. package/nitrogen/generated/android/c++/JRNPolygon.hpp +29 -2
  31. package/nitrogen/generated/android/c++/JRNPolygonHole.hpp +72 -0
  32. package/nitrogen/generated/android/c++/JRNPolyline.hpp +4 -0
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -0
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygon.kt +7 -1
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolygonHole.kt +29 -0
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNPolyline.kt +3 -0
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt +1 -1
  38. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -16
  39. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +51 -20
  40. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
  41. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +6 -3
  42. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +7 -56
  43. package/nitrogen/generated/ios/swift/RNCamera.swift +1 -8
  44. package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -8
  45. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +11 -15
  46. package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -8
  47. package/nitrogen/generated/ios/swift/RNLocationConfig.swift +2 -16
  48. package/nitrogen/generated/ios/swift/RNMarker.swift +47 -15
  49. package/nitrogen/generated/ios/swift/RNPolygon.swift +66 -1
  50. package/nitrogen/generated/ios/swift/RNPolygonHole.swift +47 -0
  51. package/nitrogen/generated/ios/swift/RNPolyline.swift +24 -1
  52. package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -8
  53. package/nitrogen/generated/shared/c++/RNAndroidLocationConfig.hpp +8 -0
  54. package/nitrogen/generated/shared/c++/RNCamera.hpp +8 -0
  55. package/nitrogen/generated/shared/c++/RNCircle.hpp +8 -0
  56. package/nitrogen/generated/shared/c++/RNHeatmap.hpp +8 -0
  57. package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +8 -0
  58. package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +8 -0
  59. package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +8 -0
  60. package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +8 -0
  61. package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +8 -0
  62. package/nitrogen/generated/shared/c++/RNInitialProps.hpp +8 -0
  63. package/nitrogen/generated/shared/c++/RNKMLayer.hpp +8 -0
  64. package/nitrogen/generated/shared/c++/RNLatLng.hpp +8 -0
  65. package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +8 -0
  66. package/nitrogen/generated/shared/c++/RNLocation.hpp +8 -0
  67. package/nitrogen/generated/shared/c++/RNLocationConfig.hpp +8 -0
  68. package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +8 -0
  69. package/nitrogen/generated/shared/c++/RNMapPadding.hpp +8 -0
  70. package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +8 -0
  71. package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +8 -0
  72. package/nitrogen/generated/shared/c++/RNMarker.hpp +17 -1
  73. package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +8 -0
  74. package/nitrogen/generated/shared/c++/RNPolygon.hpp +21 -2
  75. package/nitrogen/generated/shared/c++/RNPolygonHole.hpp +77 -0
  76. package/nitrogen/generated/shared/c++/RNPolyline.hpp +13 -1
  77. package/nitrogen/generated/shared/c++/RNPosition.hpp +8 -0
  78. package/nitrogen/generated/shared/c++/RNRegion.hpp +8 -0
  79. package/nitrogen/generated/shared/c++/RNSize.hpp +8 -0
  80. package/nitrogen/generated/shared/c++/RNSnapshotOptions.hpp +8 -0
  81. package/package.json +4 -4
  82. package/src/types.ts +9 -0
@@ -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 { () -> RNSize? in
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;
@@ -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
 
@@ -89,6 +94,9 @@ namespace margelo::nitro {
89
94
  return false;
90
95
  }
91
96
  jsi::Object obj = value.getObject(runtime);
97
+ if (!nitro::isPlainObject(runtime, obj)) {
98
+ return false;
99
+ }
92
100
  if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "allGesturesEnabled"))) return false;
93
101
  if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "compassEnabled"))) return false;
94
102
  if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "indoorLevelPickerEnabled"))) 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::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "min"))) return false;
66
74
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "max"))) return false;
67
75
  return true;