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

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 +4 -3
  4. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +11 -7
  5. package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -10
  6. package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +6 -4
  7. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +8 -5
  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 +2 -10
  16. package/ios/MapMarkerBuilder.swift +12 -10
  17. package/ios/MapPolygonBuilder.swift +17 -2
  18. package/ios/MapPolylineBuilder.swift +4 -2
  19. package/ios/RNGoogleMapsPlusView.swift +7 -5
  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
@@ -15,7 +15,7 @@
15
15
  namespace margelo::nitro::rngooglemapsplus::bridge::swift {
16
16
 
17
17
  // pragma MARK: std::function<void(const RNLocationPermissionResult& /* result */)>
18
- Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* _Nonnull swiftClosureWrapper) noexcept {
18
+ Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept {
19
19
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocationPermissionResult::fromUnsafe(swiftClosureWrapper);
20
20
  return [swiftClosure = std::move(swiftClosure)](const RNLocationPermissionResult& result) mutable -> void {
21
21
  swiftClosure.call(result);
@@ -23,7 +23,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
23
23
  }
24
24
 
25
25
  // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
26
- Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) noexcept {
26
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept {
27
27
  auto swiftClosure = RNGoogleMapsPlus::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
28
28
  return [swiftClosure = std::move(swiftClosure)](const std::exception_ptr& error) mutable -> void {
29
29
  swiftClosure.call(error);
@@ -31,11 +31,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
31
31
  }
32
32
 
33
33
  // pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>
34
- std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
34
+ std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
35
35
  RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusModuleSpec_cxx::fromUnsafe(swiftUnsafePointer);
36
36
  return std::make_shared<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift>(swiftPart);
37
37
  }
38
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept {
38
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) {
39
39
  std::shared_ptr<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusModuleSpecSwift>(cppType);
40
40
  #ifdef NITRO_DEBUG
41
41
  if (swiftWrapper == nullptr) [[unlikely]] {
@@ -47,7 +47,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
47
47
  }
48
48
 
49
49
  // pragma MARK: std::function<void(RNMapErrorCode /* error */)>
50
- Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* _Nonnull swiftClosureWrapper) noexcept {
50
+ Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept {
51
51
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNMapErrorCode::fromUnsafe(swiftClosureWrapper);
52
52
  return [swiftClosure = std::move(swiftClosure)](RNMapErrorCode error) mutable -> void {
53
53
  swiftClosure.call(static_cast<int>(error));
@@ -55,7 +55,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
55
55
  }
56
56
 
57
57
  // pragma MARK: std::function<void(bool /* ready */)>
58
- Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) noexcept {
58
+ Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept {
59
59
  auto swiftClosure = RNGoogleMapsPlus::Func_void_bool::fromUnsafe(swiftClosureWrapper);
60
60
  return [swiftClosure = std::move(swiftClosure)](bool ready) mutable -> void {
61
61
  swiftClosure.call(ready);
@@ -63,7 +63,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
63
63
  }
64
64
 
65
65
  // pragma MARK: std::function<void(const RNLocation& /* location */)>
66
- Func_void_RNLocation create_Func_void_RNLocation(void* _Nonnull swiftClosureWrapper) noexcept {
66
+ Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept {
67
67
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocation::fromUnsafe(swiftClosureWrapper);
68
68
  return [swiftClosure = std::move(swiftClosure)](const RNLocation& location) mutable -> void {
69
69
  swiftClosure.call(location);
@@ -71,7 +71,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
71
71
  }
72
72
 
73
73
  // pragma MARK: std::function<void(RNLocationErrorCode /* error */)>
74
- Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* _Nonnull swiftClosureWrapper) noexcept {
74
+ Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept {
75
75
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLocationErrorCode::fromUnsafe(swiftClosureWrapper);
76
76
  return [swiftClosure = std::move(swiftClosure)](RNLocationErrorCode error) mutable -> void {
77
77
  swiftClosure.call(static_cast<int>(error));
@@ -79,7 +79,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
79
79
  }
80
80
 
81
81
  // pragma MARK: std::function<void(const RNLatLng& /* coordinate */)>
82
- Func_void_RNLatLng create_Func_void_RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept {
82
+ Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
83
83
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNLatLng::fromUnsafe(swiftClosureWrapper);
84
84
  return [swiftClosure = std::move(swiftClosure)](const RNLatLng& coordinate) mutable -> void {
85
85
  swiftClosure.call(coordinate);
@@ -87,7 +87,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
87
87
  }
88
88
 
89
89
  // pragma MARK: std::function<void(const std::optional<std::string>& /* id */)>
90
- Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* _Nonnull swiftClosureWrapper) noexcept {
90
+ Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
91
91
  auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
92
92
  return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& id) mutable -> void {
93
93
  swiftClosure.call(id);
@@ -95,7 +95,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
95
95
  }
96
96
 
97
97
  // pragma MARK: std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>
98
- Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept {
98
+ Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
99
99
  auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string__RNLatLng::fromUnsafe(swiftClosureWrapper);
100
100
  return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& id, const RNLatLng& location) mutable -> void {
101
101
  swiftClosure.call(id, location);
@@ -103,7 +103,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
103
103
  }
104
104
 
105
105
  // pragma MARK: std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>
106
- Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* _Nonnull swiftClosureWrapper) noexcept {
106
+ Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept {
107
107
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorBuilding::fromUnsafe(swiftClosureWrapper);
108
108
  return [swiftClosure = std::move(swiftClosure)](const RNIndoorBuilding& indoorBuilding) mutable -> void {
109
109
  swiftClosure.call(indoorBuilding);
@@ -111,7 +111,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
111
111
  }
112
112
 
113
113
  // pragma MARK: std::function<void(const RNIndoorLevel& /* indoorLevel */)>
114
- Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* _Nonnull swiftClosureWrapper) noexcept {
114
+ Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept {
115
115
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorLevel::fromUnsafe(swiftClosureWrapper);
116
116
  return [swiftClosure = std::move(swiftClosure)](const RNIndoorLevel& indoorLevel) mutable -> void {
117
117
  swiftClosure.call(indoorLevel);
@@ -119,7 +119,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
119
119
  }
120
120
 
121
121
  // pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
122
- Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull swiftClosureWrapper) noexcept {
122
+ Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept {
123
123
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera_bool::fromUnsafe(swiftClosureWrapper);
124
124
  return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCamera& camera, bool isGesture) mutable -> void {
125
125
  swiftClosure.call(region, camera, isGesture);
@@ -127,11 +127,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
127
127
  }
128
128
 
129
129
  // pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
130
- std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
130
+ std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
131
131
  RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx::fromUnsafe(swiftUnsafePointer);
132
132
  return std::make_shared<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(swiftPart);
133
133
  }
134
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept {
134
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) {
135
135
  std::shared_ptr<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::rngooglemapsplus::HybridRNGoogleMapsPlusViewSpecSwift>(cppType);
136
136
  #ifdef NITRO_DEBUG
137
137
  if (swiftWrapper == nullptr) [[unlikely]] {
@@ -72,6 +72,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
72
72
  namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
73
73
  // Forward declaration of `RNMarker` to properly resolve imports.
74
74
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
75
+ // Forward declaration of `RNPolygonHole` to properly resolve imports.
76
+ namespace margelo::nitro::rngooglemapsplus { struct RNPolygonHole; }
75
77
  // Forward declaration of `RNPolygon` to properly resolve imports.
76
78
  namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
77
79
  // Forward declaration of `RNPolyline` to properly resolve imports.
@@ -125,11 +127,13 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
125
127
  #include "RNMarker.hpp"
126
128
  #include "RNMarkerSvg.hpp"
127
129
  #include "RNPolygon.hpp"
130
+ #include "RNPolygonHole.hpp"
128
131
  #include "RNPolyline.hpp"
129
132
  #include "RNPosition.hpp"
130
133
  #include "RNRegion.hpp"
131
134
  #include "RNSize.hpp"
132
135
  #include "RNUserInterfaceStyle.hpp"
136
+ #include <NitroModules/FastVectorCopy.hpp>
133
137
  #include <NitroModules/Promise.hpp>
134
138
  #include <NitroModules/PromiseHolder.hpp>
135
139
  #include <NitroModules/Result.hpp>
@@ -205,7 +209,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
205
209
  private:
206
210
  std::unique_ptr<std::function<void(const RNLocationPermissionResult& /* result */)>> _function;
207
211
  } SWIFT_NONCOPYABLE;
208
- Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* _Nonnull swiftClosureWrapper) noexcept;
212
+ Func_void_RNLocationPermissionResult create_Func_void_RNLocationPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept;
209
213
  inline Func_void_RNLocationPermissionResult_Wrapper wrap_Func_void_RNLocationPermissionResult(Func_void_RNLocationPermissionResult value) noexcept {
210
214
  return Func_void_RNLocationPermissionResult_Wrapper(std::move(value));
211
215
  }
@@ -227,7 +231,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
227
231
  private:
228
232
  std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
229
233
  } SWIFT_NONCOPYABLE;
230
- Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) noexcept;
234
+ Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
231
235
  inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
232
236
  return Func_void_std__exception_ptr_Wrapper(std::move(value));
233
237
  }
@@ -237,8 +241,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
237
241
  * Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>`.
238
242
  */
239
243
  using std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec>;
240
- std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
241
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType) noexcept;
244
+ std::shared_ptr<HybridRNGoogleMapsPlusModuleSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
245
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_(std__shared_ptr_HybridRNGoogleMapsPlusModuleSpec_ cppType);
242
246
 
243
247
  // pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>
244
248
  using std__weak_ptr_HybridRNGoogleMapsPlusModuleSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusModuleSpec>;
@@ -503,6 +507,32 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
503
507
  return vector;
504
508
  }
505
509
 
510
+ // pragma MARK: std::vector<RNPolygonHole>
511
+ /**
512
+ * Specialized version of `std::vector<RNPolygonHole>`.
513
+ */
514
+ using std__vector_RNPolygonHole_ = std::vector<RNPolygonHole>;
515
+ inline std::vector<RNPolygonHole> create_std__vector_RNPolygonHole_(size_t size) noexcept {
516
+ std::vector<RNPolygonHole> vector;
517
+ vector.reserve(size);
518
+ return vector;
519
+ }
520
+
521
+ // pragma MARK: std::optional<std::vector<RNPolygonHole>>
522
+ /**
523
+ * Specialized version of `std::optional<std::vector<RNPolygonHole>>`.
524
+ */
525
+ using std__optional_std__vector_RNPolygonHole__ = std::optional<std::vector<RNPolygonHole>>;
526
+ inline std::optional<std::vector<RNPolygonHole>> create_std__optional_std__vector_RNPolygonHole__(const std::vector<RNPolygonHole>& value) noexcept {
527
+ return std::optional<std::vector<RNPolygonHole>>(value);
528
+ }
529
+ inline bool has_value_std__optional_std__vector_RNPolygonHole__(const std::optional<std::vector<RNPolygonHole>>& optional) noexcept {
530
+ return optional.has_value();
531
+ }
532
+ inline std::vector<RNPolygonHole> get_std__optional_std__vector_RNPolygonHole__(const std::optional<std::vector<RNPolygonHole>>& optional) noexcept {
533
+ return *optional;
534
+ }
535
+
506
536
  // pragma MARK: std::vector<RNPolygon>
507
537
  /**
508
538
  * Specialized version of `std::vector<RNPolygon>`.
@@ -638,10 +668,11 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
638
668
  * Specialized version of `std::vector<double>`.
639
669
  */
640
670
  using std__vector_double_ = std::vector<double>;
641
- inline std::vector<double> create_std__vector_double_(size_t size) noexcept {
642
- std::vector<double> vector;
643
- vector.reserve(size);
644
- return vector;
671
+ inline std::vector<double> copy_std__vector_double_(const double* CONTIGUOUS_MEMORY NON_NULL data, size_t size) noexcept {
672
+ return margelo::nitro::FastVectorCopy<double>(data, size);
673
+ }
674
+ inline const double* CONTIGUOUS_MEMORY NON_NULL get_data_std__vector_double_(const std::vector<double>& vector) noexcept {
675
+ return vector.data();
645
676
  }
646
677
 
647
678
  // pragma MARK: std::optional<RNHeatmapGradient>
@@ -803,7 +834,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
803
834
  private:
804
835
  std::unique_ptr<std::function<void(RNMapErrorCode /* error */)>> _function;
805
836
  } SWIFT_NONCOPYABLE;
806
- Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* _Nonnull swiftClosureWrapper) noexcept;
837
+ Func_void_RNMapErrorCode create_Func_void_RNMapErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
807
838
  inline Func_void_RNMapErrorCode_Wrapper wrap_Func_void_RNMapErrorCode(Func_void_RNMapErrorCode value) noexcept {
808
839
  return Func_void_RNMapErrorCode_Wrapper(std::move(value));
809
840
  }
@@ -840,7 +871,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
840
871
  private:
841
872
  std::unique_ptr<std::function<void(bool /* ready */)>> _function;
842
873
  } SWIFT_NONCOPYABLE;
843
- Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) noexcept;
874
+ Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
844
875
  inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
845
876
  return Func_void_bool_Wrapper(std::move(value));
846
877
  }
@@ -877,7 +908,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
877
908
  private:
878
909
  std::unique_ptr<std::function<void(const RNLocation& /* location */)>> _function;
879
910
  } SWIFT_NONCOPYABLE;
880
- Func_void_RNLocation create_Func_void_RNLocation(void* _Nonnull swiftClosureWrapper) noexcept;
911
+ Func_void_RNLocation create_Func_void_RNLocation(void* NON_NULL swiftClosureWrapper) noexcept;
881
912
  inline Func_void_RNLocation_Wrapper wrap_Func_void_RNLocation(Func_void_RNLocation value) noexcept {
882
913
  return Func_void_RNLocation_Wrapper(std::move(value));
883
914
  }
@@ -914,7 +945,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
914
945
  private:
915
946
  std::unique_ptr<std::function<void(RNLocationErrorCode /* error */)>> _function;
916
947
  } SWIFT_NONCOPYABLE;
917
- Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* _Nonnull swiftClosureWrapper) noexcept;
948
+ Func_void_RNLocationErrorCode create_Func_void_RNLocationErrorCode(void* NON_NULL swiftClosureWrapper) noexcept;
918
949
  inline Func_void_RNLocationErrorCode_Wrapper wrap_Func_void_RNLocationErrorCode(Func_void_RNLocationErrorCode value) noexcept {
919
950
  return Func_void_RNLocationErrorCode_Wrapper(std::move(value));
920
951
  }
@@ -951,7 +982,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
951
982
  private:
952
983
  std::unique_ptr<std::function<void(const RNLatLng& /* coordinate */)>> _function;
953
984
  } SWIFT_NONCOPYABLE;
954
- Func_void_RNLatLng create_Func_void_RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept;
985
+ Func_void_RNLatLng create_Func_void_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
955
986
  inline Func_void_RNLatLng_Wrapper wrap_Func_void_RNLatLng(Func_void_RNLatLng value) noexcept {
956
987
  return Func_void_RNLatLng_Wrapper(std::move(value));
957
988
  }
@@ -988,7 +1019,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
988
1019
  private:
989
1020
  std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */)>> _function;
990
1021
  } SWIFT_NONCOPYABLE;
991
- Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* _Nonnull swiftClosureWrapper) noexcept;
1022
+ Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
992
1023
  inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
993
1024
  return Func_void_std__optional_std__string__Wrapper(std::move(value));
994
1025
  }
@@ -1025,7 +1056,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1025
1056
  private:
1026
1057
  std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> _function;
1027
1058
  } SWIFT_NONCOPYABLE;
1028
- Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* _Nonnull swiftClosureWrapper) noexcept;
1059
+ Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
1029
1060
  inline Func_void_std__optional_std__string__RNLatLng_Wrapper wrap_Func_void_std__optional_std__string__RNLatLng(Func_void_std__optional_std__string__RNLatLng value) noexcept {
1030
1061
  return Func_void_std__optional_std__string__RNLatLng_Wrapper(std::move(value));
1031
1062
  }
@@ -1073,7 +1104,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1073
1104
  private:
1074
1105
  std::unique_ptr<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> _function;
1075
1106
  } SWIFT_NONCOPYABLE;
1076
- Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* _Nonnull swiftClosureWrapper) noexcept;
1107
+ Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept;
1077
1108
  inline Func_void_RNIndoorBuilding_Wrapper wrap_Func_void_RNIndoorBuilding(Func_void_RNIndoorBuilding value) noexcept {
1078
1109
  return Func_void_RNIndoorBuilding_Wrapper(std::move(value));
1079
1110
  }
@@ -1110,7 +1141,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1110
1141
  private:
1111
1142
  std::unique_ptr<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> _function;
1112
1143
  } SWIFT_NONCOPYABLE;
1113
- Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* _Nonnull swiftClosureWrapper) noexcept;
1144
+ Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept;
1114
1145
  inline Func_void_RNIndoorLevel_Wrapper wrap_Func_void_RNIndoorLevel(Func_void_RNIndoorLevel value) noexcept {
1115
1146
  return Func_void_RNIndoorLevel_Wrapper(std::move(value));
1116
1147
  }
@@ -1147,7 +1178,7 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1147
1178
  private:
1148
1179
  std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
1149
1180
  } SWIFT_NONCOPYABLE;
1150
- Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull swiftClosureWrapper) noexcept;
1181
+ Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept;
1151
1182
  inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
1152
1183
  return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
1153
1184
  }
@@ -1214,8 +1245,8 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1214
1245
  * Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
1215
1246
  */
1216
1247
  using std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>;
1217
- std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
1218
- void* _Nonnull get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType) noexcept;
1248
+ std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
1249
+ void* NON_NULL get_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_ cppType);
1219
1250
 
1220
1251
  // pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
1221
1252
  using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
@@ -72,6 +72,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
72
72
  namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
73
73
  // Forward declaration of `RNMarker` to properly resolve imports.
74
74
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
75
+ // Forward declaration of `RNPolygonHole` to properly resolve imports.
76
+ namespace margelo::nitro::rngooglemapsplus { struct RNPolygonHole; }
75
77
  // Forward declaration of `RNPolygon` to properly resolve imports.
76
78
  namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
77
79
  // Forward declaration of `RNPolyline` to properly resolve imports.
@@ -125,6 +127,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
125
127
  #include "RNMarker.hpp"
126
128
  #include "RNMarkerSvg.hpp"
127
129
  #include "RNPolygon.hpp"
130
+ #include "RNPolygonHole.hpp"
128
131
  #include "RNPolyline.hpp"
129
132
  #include "RNPosition.hpp"
130
133
  #include "RNRegion.hpp"
@@ -36,6 +36,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
36
36
  namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
37
37
  // Forward declaration of `RNPolygon` to properly resolve imports.
38
38
  namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
39
+ // Forward declaration of `RNPolygonHole` to properly resolve imports.
40
+ namespace margelo::nitro::rngooglemapsplus { struct RNPolygonHole; }
39
41
  // Forward declaration of `RNPolyline` to properly resolve imports.
40
42
  namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
41
43
  // Forward declaration of `RNLineCapType` to properly resolve imports.
@@ -106,6 +108,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
106
108
  #include "RNPosition.hpp"
107
109
  #include "RNMarkerSvg.hpp"
108
110
  #include "RNPolygon.hpp"
111
+ #include "RNPolygonHole.hpp"
109
112
  #include "RNPolyline.hpp"
110
113
  #include "RNLineCapType.hpp"
111
114
  #include "RNLineJoinType.hpp"
@@ -422,7 +425,7 @@ namespace margelo::nitro::rngooglemapsplus {
422
425
  public:
423
426
  // Methods
424
427
  inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
425
- auto __result = _swiftPart.setCamera(camera, animated, durationMs);
428
+ auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
426
429
  if (__result.hasError()) [[unlikely]] {
427
430
  std::rethrow_exception(__result.error());
428
431
  }
@@ -440,13 +443,13 @@ namespace margelo::nitro::rngooglemapsplus {
440
443
  }
441
444
  }
442
445
  inline void animateToBounds(const RNLatLngBounds& bounds, std::optional<double> padding, std::optional<double> durationMs, std::optional<bool> lockBounds) override {
443
- auto __result = _swiftPart.animateToBounds(bounds, padding, durationMs, lockBounds);
446
+ auto __result = _swiftPart.animateToBounds(std::forward<decltype(bounds)>(bounds), padding, durationMs, lockBounds);
444
447
  if (__result.hasError()) [[unlikely]] {
445
448
  std::rethrow_exception(__result.error());
446
449
  }
447
450
  }
448
451
  inline std::shared_ptr<Promise<std::optional<std::string>>> snapshot(const RNSnapshotOptions& options) override {
449
- auto __result = _swiftPart.snapshot(options);
452
+ auto __result = _swiftPart.snapshot(std::forward<decltype(options)>(options));
450
453
  if (__result.hasError()) [[unlikely]] {
451
454
  std::rethrow_exception(__result.error());
452
455
  }
@@ -119,14 +119,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
119
119
  }
120
120
  @inline(__always)
121
121
  set {
122
- self.__implementation.initialProps = { () -> RNInitialProps? in
123
- if bridge.has_value_std__optional_RNInitialProps_(newValue) {
124
- let __unwrapped = bridge.get_std__optional_RNInitialProps_(newValue)
125
- return __unwrapped
126
- } else {
127
- return nil
128
- }
129
- }()
122
+ self.__implementation.initialProps = newValue.value
130
123
  }
131
124
  }
132
125
 
@@ -143,14 +136,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
143
136
  }
144
137
  @inline(__always)
145
138
  set {
146
- self.__implementation.uiSettings = { () -> RNMapUiSettings? in
147
- if bridge.has_value_std__optional_RNMapUiSettings_(newValue) {
148
- let __unwrapped = bridge.get_std__optional_RNMapUiSettings_(newValue)
149
- return __unwrapped
150
- } else {
151
- return nil
152
- }
153
- }()
139
+ self.__implementation.uiSettings = newValue.value
154
140
  }
155
141
  }
156
142
 
@@ -276,14 +262,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
276
262
  }
277
263
  @inline(__always)
278
264
  set {
279
- self.__implementation.mapZoomConfig = { () -> RNMapZoomConfig? in
280
- if bridge.has_value_std__optional_RNMapZoomConfig_(newValue) {
281
- let __unwrapped = bridge.get_std__optional_RNMapZoomConfig_(newValue)
282
- return __unwrapped
283
- } else {
284
- return nil
285
- }
286
- }()
265
+ self.__implementation.mapZoomConfig = newValue.value
287
266
  }
288
267
  }
289
268
 
@@ -300,14 +279,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
300
279
  }
301
280
  @inline(__always)
302
281
  set {
303
- self.__implementation.mapPadding = { () -> RNMapPadding? in
304
- if bridge.has_value_std__optional_RNMapPadding_(newValue) {
305
- let __unwrapped = bridge.get_std__optional_RNMapPadding_(newValue)
306
- return __unwrapped
307
- } else {
308
- return nil
309
- }
310
- }()
282
+ self.__implementation.mapPadding = newValue.value
311
283
  }
312
284
  }
313
285
 
@@ -521,14 +493,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
521
493
  }
522
494
  @inline(__always)
523
495
  set {
524
- self.__implementation.locationConfig = { () -> RNLocationConfig? in
525
- if bridge.has_value_std__optional_RNLocationConfig_(newValue) {
526
- let __unwrapped = bridge.get_std__optional_RNLocationConfig_(newValue)
527
- return __unwrapped
528
- } else {
529
- return nil
530
- }
531
- }()
496
+ self.__implementation.locationConfig = newValue.value
532
497
  }
533
498
  }
534
499
 
@@ -1133,14 +1098,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1133
1098
  @inline(__always)
1134
1099
  public final func setCameraToCoordinates(coordinates: bridge.std__vector_RNLatLng_, padding: bridge.std__optional_RNMapPadding_, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
1135
1100
  do {
1136
- try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding: { () -> RNMapPadding? in
1137
- if bridge.has_value_std__optional_RNMapPadding_(padding) {
1138
- let __unwrapped = bridge.get_std__optional_RNMapPadding_(padding)
1139
- return __unwrapped
1140
- } else {
1141
- return nil
1142
- }
1143
- }(), animated: animated.value, durationMs: durationMs.value)
1101
+ try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding: padding.value, animated: animated.value, durationMs: durationMs.value)
1144
1102
  return bridge.create_Result_void_()
1145
1103
  } catch (let __error) {
1146
1104
  let __exceptionPtr = __error.toCpp()
@@ -1151,14 +1109,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
1151
1109
  @inline(__always)
1152
1110
  public final func setCameraBounds(bounds: bridge.std__optional_RNLatLngBounds_) -> bridge.Result_void_ {
1153
1111
  do {
1154
- try self.__implementation.setCameraBounds(bounds: { () -> RNLatLngBounds? in
1155
- if bridge.has_value_std__optional_RNLatLngBounds_(bounds) {
1156
- let __unwrapped = bridge.get_std__optional_RNLatLngBounds_(bounds)
1157
- return __unwrapped
1158
- } else {
1159
- return nil
1160
- }
1161
- }())
1112
+ try self.__implementation.setCameraBounds(bounds: bounds.value)
1162
1113
  return bridge.create_Result_void_()
1163
1114
  } catch (let __error) {
1164
1115
  let __exceptionPtr = __error.toCpp()
@@ -49,14 +49,7 @@ public extension RNCamera {
49
49
  var center: RNLatLng? {
50
50
  @inline(__always)
51
51
  get {
52
- return { () -> RNLatLng? in
53
- if bridge.has_value_std__optional_RNLatLng_(self.__center) {
54
- let __unwrapped = bridge.get_std__optional_RNLatLng_(self.__center)
55
- return __unwrapped
56
- } else {
57
- return nil
58
- }
59
- }()
52
+ return self.__center.value
60
53
  }
61
54
  @inline(__always)
62
55
  set {
@@ -157,14 +157,7 @@ public extension RNHeatmap {
157
157
  var gradient: RNHeatmapGradient? {
158
158
  @inline(__always)
159
159
  get {
160
- return { () -> RNHeatmapGradient? in
161
- if bridge.has_value_std__optional_RNHeatmapGradient_(self.__gradient) {
162
- let __unwrapped = bridge.get_std__optional_RNHeatmapGradient_(self.__gradient)
163
- return __unwrapped
164
- } else {
165
- return nil
166
- }
167
- }()
160
+ return self.__gradient.value
168
161
  }
169
162
  @inline(__always)
170
163
  set {
@@ -25,13 +25,9 @@ public extension RNHeatmapGradient {
25
25
  __vector.push_back(std.string(__item))
26
26
  }
27
27
  return __vector
28
- }(), { () -> bridge.std__vector_double_ in
29
- var __vector = bridge.create_std__vector_double_(startPoints.count)
30
- for __item in startPoints {
31
- __vector.push_back(__item)
32
- }
33
- return __vector
34
- }(), colorMapSize)
28
+ }(), startPoints.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
29
+ return bridge.copy_std__vector_double_(__pointer.baseAddress!, startPoints.count)
30
+ }, colorMapSize)
35
31
  }
36
32
 
37
33
  var colors: [String] {
@@ -54,17 +50,17 @@ public extension RNHeatmapGradient {
54
50
  var startPoints: [Double] {
55
51
  @inline(__always)
56
52
  get {
57
- return self.__startPoints.map({ __item in __item })
53
+ return { () -> [Double] in
54
+ let __data = bridge.get_data_std__vector_double_(self.__startPoints)
55
+ let __size = self.__startPoints.size()
56
+ return Array(UnsafeBufferPointer(start: __data, count: __size))
57
+ }()
58
58
  }
59
59
  @inline(__always)
60
60
  set {
61
- self.__startPoints = { () -> bridge.std__vector_double_ in
62
- var __vector = bridge.create_std__vector_double_(newValue.count)
63
- for __item in newValue {
64
- __vector.push_back(__item)
65
- }
66
- return __vector
67
- }()
61
+ self.__startPoints = newValue.withUnsafeBufferPointer { __pointer -> bridge.std__vector_double_ in
62
+ return bridge.copy_std__vector_double_(__pointer.baseAddress!, newValue.count)
63
+ }
68
64
  }
69
65
  }
70
66
 
@@ -84,14 +84,7 @@ public extension RNInitialProps {
84
84
  var camera: RNCamera? {
85
85
  @inline(__always)
86
86
  get {
87
- return { () -> RNCamera? in
88
- if bridge.has_value_std__optional_RNCamera_(self.__camera) {
89
- let __unwrapped = bridge.get_std__optional_RNCamera_(self.__camera)
90
- return __unwrapped
91
- } else {
92
- return nil
93
- }
94
- }()
87
+ return self.__camera.value
95
88
  }
96
89
  @inline(__always)
97
90
  set {
@@ -37,14 +37,7 @@ public extension RNLocationConfig {
37
37
  var android: RNAndroidLocationConfig? {
38
38
  @inline(__always)
39
39
  get {
40
- return { () -> RNAndroidLocationConfig? in
41
- if bridge.has_value_std__optional_RNAndroidLocationConfig_(self.__android) {
42
- let __unwrapped = bridge.get_std__optional_RNAndroidLocationConfig_(self.__android)
43
- return __unwrapped
44
- } else {
45
- return nil
46
- }
47
- }()
40
+ return self.__android.value
48
41
  }
49
42
  @inline(__always)
50
43
  set {
@@ -61,14 +54,7 @@ public extension RNLocationConfig {
61
54
  var ios: RNIOSLocationConfig? {
62
55
  @inline(__always)
63
56
  get {
64
- return { () -> RNIOSLocationConfig? in
65
- if bridge.has_value_std__optional_RNIOSLocationConfig_(self.__ios) {
66
- let __unwrapped = bridge.get_std__optional_RNIOSLocationConfig_(self.__ios)
67
- return __unwrapped
68
- } else {
69
- return nil
70
- }
71
- }()
57
+ return self.__ios.value
72
58
  }
73
59
  @inline(__always)
74
60
  set {