react-native-google-maps-plus 1.0.1 → 1.0.2

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 (179) hide show
  1. package/{GoogleMapsNitro.podspec → RNGoogleMapsPlus.podspec} +2 -2
  2. package/android/CMakeLists.txt +3 -3
  3. package/android/build.gradle +4 -4
  4. package/android/gradle.properties +8 -8
  5. package/android/src/main/cpp/cpp-adapter.cpp +2 -2
  6. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/Color.kt +1 -1
  7. package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroViewImpl.kt → rngooglemapsplus/GoogleMapsViewImpl.kt} +7 -7
  8. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/LocationHandler.kt +1 -1
  9. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapMarker.kt +1 -1
  10. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolygon.kt +1 -1
  11. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/MapPolyline.kt +1 -1
  12. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PermissionHandler.kt +1 -1
  13. package/android/src/main/java/com/{googlemapsnitro → rngooglemapsplus}/PlayServicesHandler.kt +1 -1
  14. package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroModule.kt → rngooglemapsplus/RNGoogleMapsPlusModule.kt} +3 -3
  15. package/android/src/main/java/com/{googlemapsnitro/GoogleMapsNitroPackage.kt → rngooglemapsplus/RNGoogleMapsPlusPackage.kt} +6 -6
  16. package/android/src/main/java/com/{googlemapsnitro/HybridGoogleMapsNitroView.kt → rngooglemapsplus/RNGoogleMapsPlusView.kt} +4 -4
  17. package/ios/{GoogleMapNitroViewImpl.swift → GoogleMapViewImpl.swift} +1 -1
  18. package/ios/{HybridGoogleMapsNitroModule.swift → RNGoogleMapsPlusModule.swift} +1 -1
  19. package/ios/{HybridGoogleMapsNitroView.swift → RNGoogleMapsPlusView.swift} +3 -3
  20. package/lib/module/RNGoogleMapsPlusModule.nitro.js +4 -0
  21. package/lib/module/RNGoogleMapsPlusModule.nitro.js.map +1 -0
  22. package/lib/module/RNGoogleMapsPlusView.nitro.js +4 -0
  23. package/lib/module/RNGoogleMapsPlusView.nitro.js.map +1 -0
  24. package/lib/module/index.js +3 -3
  25. package/lib/module/index.js.map +1 -1
  26. package/lib/typescript/src/{GoogleMapsNitroModule.nitro.d.ts → RNGoogleMapsPlusModule.nitro.d.ts} +2 -2
  27. package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -0
  28. package/lib/typescript/src/{GoogleMapsNitroView.nitro.d.ts → RNGoogleMapsPlusView.nitro.d.ts} +4 -4
  29. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -0
  30. package/lib/typescript/src/index.d.ts +5 -5
  31. package/lib/typescript/src/index.d.ts.map +1 -1
  32. package/lib/typescript/src/types.d.ts +2 -2
  33. package/lib/typescript/src/types.d.ts.map +1 -1
  34. package/nitro.json +11 -11
  35. package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.cmake → RNGoogleMapsPlus+autolinking.cmake} +15 -15
  36. package/nitrogen/generated/android/{GoogleMapsNitro+autolinking.gradle → RNGoogleMapsPlus+autolinking.gradle} +3 -3
  37. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +70 -0
  38. package/nitrogen/generated/android/{GoogleMapsNitroOnLoad.hpp → RNGoogleMapsPlusOnLoad.hpp} +5 -5
  39. package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +4 -4
  40. package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +4 -4
  41. package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +4 -4
  42. package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +4 -4
  43. package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +4 -4
  44. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +4 -4
  45. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +4 -4
  46. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.cpp → JHybridRNGoogleMapsPlusModuleSpec.cpp} +16 -16
  47. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroModuleSpec.hpp → JHybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
  48. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.cpp → JHybridRNGoogleMapsPlusViewSpec.cpp} +72 -72
  49. package/nitrogen/generated/android/c++/{JHybridGoogleMapsNitroViewSpec.hpp → JHybridRNGoogleMapsPlusViewSpec.hpp} +12 -12
  50. package/nitrogen/generated/android/c++/JRNAndroidLocationPermissionResult.hpp +3 -3
  51. package/nitrogen/generated/android/c++/JRNCamera.hpp +3 -3
  52. package/nitrogen/generated/android/c++/JRNIOSPermissionResult.hpp +3 -3
  53. package/nitrogen/generated/android/c++/JRNLatLng.hpp +3 -3
  54. package/nitrogen/generated/android/c++/JRNLineCapType.hpp +3 -3
  55. package/nitrogen/generated/android/c++/JRNLineJoinType.hpp +3 -3
  56. package/nitrogen/generated/android/c++/JRNLocation.hpp +3 -3
  57. package/nitrogen/generated/android/c++/JRNLocationErrorCode.hpp +3 -3
  58. package/nitrogen/generated/android/c++/JRNLocationPermissionResult.hpp +3 -3
  59. package/nitrogen/generated/android/c++/JRNMapErrorCode.hpp +3 -3
  60. package/nitrogen/generated/android/c++/JRNMapPadding.hpp +3 -3
  61. package/nitrogen/generated/android/c++/JRNMarker.hpp +3 -3
  62. package/nitrogen/generated/android/c++/JRNPolygon.hpp +3 -3
  63. package/nitrogen/generated/android/c++/JRNPolyline.hpp +3 -3
  64. package/nitrogen/generated/android/c++/JRNPosition.hpp +3 -3
  65. package/nitrogen/generated/android/c++/JRNRegion.hpp +3 -3
  66. package/nitrogen/generated/android/c++/JRNUserInterfaceStyle.hpp +3 -3
  67. package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.cpp → JHybridRNGoogleMapsPlusViewStateUpdater.cpp} +14 -14
  68. package/nitrogen/generated/android/c++/views/{JHybridGoogleMapsNitroViewStateUpdater.hpp → JHybridRNGoogleMapsPlusViewStateUpdater.hpp} +11 -11
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLatLng.kt +1 -1
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocation.kt +1 -1
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNLocationErrorCode.kt +1 -1
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNMapErrorCode.kt +1 -1
  73. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_RNRegion_RNCamera_bool.kt +1 -1
  74. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_bool.kt +1 -1
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/Func_void_std__string.kt +1 -1
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroModuleSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusModuleSpec.kt} +6 -6
  77. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/HybridGoogleMapsNitroViewSpec.kt → rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt} +6 -6
  78. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNAndroidLocationPermissionResult.kt +1 -1
  79. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNCamera.kt +1 -1
  80. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/GoogleMapsNitroOnLoad.kt → rngooglemapsplus/RNGoogleMapsPlusOnLoad.kt} +9 -9
  81. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNIOSPermissionResult.kt +1 -1
  82. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLatLng.kt +1 -1
  83. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineCapType.kt +1 -1
  84. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLineJoinType.kt +1 -1
  85. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocation.kt +1 -1
  86. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationErrorCode.kt +1 -1
  87. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNLocationPermissionResult.kt +1 -1
  88. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapErrorCode.kt +1 -1
  89. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMapPadding.kt +1 -1
  90. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNMarker.kt +1 -1
  91. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolygon.kt +1 -1
  92. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPolyline.kt +1 -1
  93. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNPosition.kt +1 -1
  94. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNRegion.kt +1 -1
  95. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro → rngooglemapsplus}/RNUserInterfaceStyle.kt +1 -1
  96. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewManager.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewManager.kt} +9 -9
  97. package/nitrogen/generated/android/kotlin/com/margelo/nitro/{googlemapsnitro/views/HybridGoogleMapsNitroViewStateUpdater.kt → rngooglemapsplus/views/HybridRNGoogleMapsPlusViewStateUpdater.kt} +5 -5
  98. package/nitrogen/generated/ios/{GoogleMapsNitro+autolinking.rb → RNGoogleMapsPlus+autolinking.rb} +4 -4
  99. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.cpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp} +32 -32
  100. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Bridge.hpp → RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp} +45 -45
  101. package/nitrogen/generated/ios/{GoogleMapsNitro-Swift-Cxx-Umbrella.hpp → RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp} +35 -35
  102. package/nitrogen/generated/ios/RNGoogleMapsPlusAutolinking.mm +41 -0
  103. package/nitrogen/generated/ios/{GoogleMapsNitroAutolinking.swift → RNGoogleMapsPlusAutolinking.swift} +15 -15
  104. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusModuleSpecSwift.cpp +11 -0
  105. package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroModuleSpecSwift.hpp → HybridRNGoogleMapsPlusModuleSpecSwift.hpp} +18 -18
  106. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.cpp +11 -0
  107. package/nitrogen/generated/ios/c++/{HybridGoogleMapsNitroViewSpecSwift.hpp → HybridRNGoogleMapsPlusViewSpecSwift.hpp} +32 -32
  108. package/nitrogen/generated/ios/c++/views/{HybridGoogleMapsNitroViewComponent.mm → HybridRNGoogleMapsPlusViewComponent.mm} +18 -18
  109. package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
  110. package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
  111. package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +2 -2
  112. package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
  113. package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +2 -2
  114. package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
  115. package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
  116. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
  117. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
  118. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +52 -0
  119. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroModuleSpec_cxx.swift → HybridRNGoogleMapsPlusModuleSpec_cxx.swift} +21 -21
  120. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec.swift → HybridRNGoogleMapsPlusViewSpec.swift} +14 -14
  121. package/nitrogen/generated/ios/swift/{HybridGoogleMapsNitroViewSpec_cxx.swift → HybridRNGoogleMapsPlusViewSpec_cxx.swift} +22 -22
  122. package/nitrogen/generated/ios/swift/RNAndroidLocationPermissionResult.swift +1 -1
  123. package/nitrogen/generated/ios/swift/RNCamera.swift +2 -2
  124. package/nitrogen/generated/ios/swift/RNIOSPermissionResult.swift +1 -1
  125. package/nitrogen/generated/ios/swift/RNLatLng.swift +2 -2
  126. package/nitrogen/generated/ios/swift/RNLineCapType.swift +1 -1
  127. package/nitrogen/generated/ios/swift/RNLineJoinType.swift +1 -1
  128. package/nitrogen/generated/ios/swift/RNLocation.swift +2 -2
  129. package/nitrogen/generated/ios/swift/RNLocationErrorCode.swift +1 -1
  130. package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +2 -2
  131. package/nitrogen/generated/ios/swift/RNMapErrorCode.swift +1 -1
  132. package/nitrogen/generated/ios/swift/RNMapPadding.swift +2 -2
  133. package/nitrogen/generated/ios/swift/RNMarker.swift +2 -2
  134. package/nitrogen/generated/ios/swift/RNPolygon.swift +2 -2
  135. package/nitrogen/generated/ios/swift/RNPolyline.swift +2 -2
  136. package/nitrogen/generated/ios/swift/RNPosition.swift +2 -2
  137. package/nitrogen/generated/ios/swift/RNRegion.swift +2 -2
  138. package/nitrogen/generated/ios/swift/RNUserInterfaceStyle.swift +1 -1
  139. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.cpp → HybridRNGoogleMapsPlusModuleSpec.cpp} +9 -9
  140. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroModuleSpec.hpp → HybridRNGoogleMapsPlusModuleSpec.hpp} +12 -12
  141. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +66 -0
  142. package/nitrogen/generated/shared/c++/{HybridGoogleMapsNitroViewSpec.hpp → HybridRNGoogleMapsPlusViewSpec.hpp} +23 -23
  143. package/nitrogen/generated/shared/c++/RNAndroidLocationPermissionResult.hpp +6 -6
  144. package/nitrogen/generated/shared/c++/RNCamera.hpp +10 -10
  145. package/nitrogen/generated/shared/c++/RNIOSPermissionResult.hpp +6 -6
  146. package/nitrogen/generated/shared/c++/RNLatLng.hpp +6 -6
  147. package/nitrogen/generated/shared/c++/RNLineCapType.hpp +11 -11
  148. package/nitrogen/generated/shared/c++/RNLineJoinType.hpp +11 -11
  149. package/nitrogen/generated/shared/c++/RNLocation.hpp +10 -10
  150. package/nitrogen/generated/shared/c++/RNLocationErrorCode.hpp +6 -6
  151. package/nitrogen/generated/shared/c++/RNLocationPermissionResult.hpp +14 -14
  152. package/nitrogen/generated/shared/c++/RNMapErrorCode.hpp +6 -6
  153. package/nitrogen/generated/shared/c++/RNMapPadding.hpp +6 -6
  154. package/nitrogen/generated/shared/c++/RNMarker.hpp +14 -14
  155. package/nitrogen/generated/shared/c++/RNPolygon.hpp +10 -10
  156. package/nitrogen/generated/shared/c++/RNPolyline.hpp +18 -18
  157. package/nitrogen/generated/shared/c++/RNPosition.hpp +6 -6
  158. package/nitrogen/generated/shared/c++/RNRegion.hpp +10 -10
  159. package/nitrogen/generated/shared/c++/RNUserInterfaceStyle.hpp +11 -11
  160. package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.cpp → HybridRNGoogleMapsPlusViewComponent.cpp} +42 -42
  161. package/nitrogen/generated/shared/c++/views/{HybridGoogleMapsNitroViewComponent.hpp → HybridRNGoogleMapsPlusViewComponent.hpp} +32 -32
  162. package/nitrogen/generated/shared/json/{GoogleMapsNitroViewConfig.json → RNGoogleMapsPlusViewConfig.json} +1 -1
  163. package/package.json +9 -3
  164. package/src/{GoogleMapsNitroModule.nitro.ts → RNGoogleMapsPlusModule.nitro.ts} +1 -1
  165. package/src/{GoogleMapsNitroView.nitro.ts → RNGoogleMapsPlusView.nitro.ts} +5 -5
  166. package/src/index.tsx +11 -11
  167. package/src/types.ts +2 -2
  168. package/lib/module/GoogleMapsNitroModule.nitro.js +0 -4
  169. package/lib/module/GoogleMapsNitroModule.nitro.js.map +0 -1
  170. package/lib/module/GoogleMapsNitroView.nitro.js +0 -4
  171. package/lib/module/GoogleMapsNitroView.nitro.js.map +0 -1
  172. package/lib/typescript/src/GoogleMapsNitroModule.nitro.d.ts.map +0 -1
  173. package/lib/typescript/src/GoogleMapsNitroView.nitro.d.ts.map +0 -1
  174. package/nitrogen/generated/android/GoogleMapsNitroOnLoad.cpp +0 -70
  175. package/nitrogen/generated/ios/GoogleMapsNitroAutolinking.mm +0 -41
  176. package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroModuleSpecSwift.cpp +0 -11
  177. package/nitrogen/generated/ios/c++/HybridGoogleMapsNitroViewSpecSwift.cpp +0 -11
  178. package/nitrogen/generated/ios/swift/HybridGoogleMapsNitroModuleSpec.swift +0 -52
  179. package/nitrogen/generated/shared/c++/HybridGoogleMapsNitroViewSpec.cpp +0 -66
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- namespace margelo::nitro::googlemapsnitro {
25
+ namespace margelo::nitro::rngooglemapsplus {
26
26
 
27
27
  /**
28
28
  * A struct which can be represented as a JavaScript object (RNMapPadding).
@@ -39,23 +39,23 @@ namespace margelo::nitro::googlemapsnitro {
39
39
  explicit RNMapPadding(double top, double left, double bottom, double right): top(top), left(left), bottom(bottom), right(right) {}
40
40
  };
41
41
 
42
- } // namespace margelo::nitro::googlemapsnitro
42
+ } // namespace margelo::nitro::rngooglemapsplus
43
43
 
44
44
  namespace margelo::nitro {
45
45
 
46
46
  // C++ RNMapPadding <> JS RNMapPadding (object)
47
47
  template <>
48
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNMapPadding> final {
49
- static inline margelo::nitro::googlemapsnitro::RNMapPadding fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
48
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNMapPadding> final {
49
+ static inline margelo::nitro::rngooglemapsplus::RNMapPadding fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
50
50
  jsi::Object obj = arg.asObject(runtime);
51
- return margelo::nitro::googlemapsnitro::RNMapPadding(
51
+ return margelo::nitro::rngooglemapsplus::RNMapPadding(
52
52
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "top")),
53
53
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "left")),
54
54
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "bottom")),
55
55
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "right"))
56
56
  );
57
57
  }
58
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNMapPadding& arg) {
58
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNMapPadding& arg) {
59
59
  jsi::Object obj(runtime);
60
60
  obj.setProperty(runtime, "top", JSIConverter<double>::toJSI(runtime, arg.top));
61
61
  obj.setProperty(runtime, "left", JSIConverter<double>::toJSI(runtime, arg.left));
@@ -19,16 +19,16 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
  // Forward declaration of `RNPosition` to properly resolve imports.
24
- namespace margelo::nitro::googlemapsnitro { struct RNPosition; }
24
+ namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
25
25
 
26
26
  #include <string>
27
27
  #include "RNLatLng.hpp"
28
28
  #include "RNPosition.hpp"
29
29
  #include <optional>
30
30
 
31
- namespace margelo::nitro::googlemapsnitro {
31
+ namespace margelo::nitro::rngooglemapsplus {
32
32
 
33
33
  /**
34
34
  * A struct which can be represented as a JavaScript object (RNMarker).
@@ -48,31 +48,31 @@ namespace margelo::nitro::googlemapsnitro {
48
48
  explicit RNMarker(std::string id, double zIndex, RNLatLng coordinate, std::optional<RNPosition> anchor, double width, double height, std::string iconSvg): id(id), zIndex(zIndex), coordinate(coordinate), anchor(anchor), width(width), height(height), iconSvg(iconSvg) {}
49
49
  };
50
50
 
51
- } // namespace margelo::nitro::googlemapsnitro
51
+ } // namespace margelo::nitro::rngooglemapsplus
52
52
 
53
53
  namespace margelo::nitro {
54
54
 
55
55
  // C++ RNMarker <> JS RNMarker (object)
56
56
  template <>
57
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNMarker> final {
58
- static inline margelo::nitro::googlemapsnitro::RNMarker fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
57
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNMarker> final {
58
+ static inline margelo::nitro::rngooglemapsplus::RNMarker fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
59
59
  jsi::Object obj = arg.asObject(runtime);
60
- return margelo::nitro::googlemapsnitro::RNMarker(
60
+ return margelo::nitro::rngooglemapsplus::RNMarker(
61
61
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "id")),
62
62
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "zIndex")),
63
- JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "coordinate")),
64
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNPosition>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
63
+ JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "coordinate")),
64
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
65
65
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "width")),
66
66
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "height")),
67
67
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "iconSvg"))
68
68
  );
69
69
  }
70
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNMarker& arg) {
70
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNMarker& arg) {
71
71
  jsi::Object obj(runtime);
72
72
  obj.setProperty(runtime, "id", JSIConverter<std::string>::toJSI(runtime, arg.id));
73
73
  obj.setProperty(runtime, "zIndex", JSIConverter<double>::toJSI(runtime, arg.zIndex));
74
- obj.setProperty(runtime, "coordinate", JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::toJSI(runtime, arg.coordinate));
75
- obj.setProperty(runtime, "anchor", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNPosition>>::toJSI(runtime, arg.anchor));
74
+ obj.setProperty(runtime, "coordinate", JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::toJSI(runtime, arg.coordinate));
75
+ obj.setProperty(runtime, "anchor", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::toJSI(runtime, arg.anchor));
76
76
  obj.setProperty(runtime, "width", JSIConverter<double>::toJSI(runtime, arg.width));
77
77
  obj.setProperty(runtime, "height", JSIConverter<double>::toJSI(runtime, arg.height));
78
78
  obj.setProperty(runtime, "iconSvg", JSIConverter<std::string>::toJSI(runtime, arg.iconSvg));
@@ -85,8 +85,8 @@ namespace margelo::nitro {
85
85
  jsi::Object obj = value.getObject(runtime);
86
86
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
87
87
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
88
- if (!JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "coordinate"))) return false;
89
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNPosition>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
88
+ if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "coordinate"))) return false;
89
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
90
90
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "width"))) return false;
91
91
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "height"))) return false;
92
92
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "iconSvg"))) return false;
@@ -19,14 +19,14 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
 
24
24
  #include <string>
25
25
  #include "RNLatLng.hpp"
26
26
  #include <vector>
27
27
  #include <optional>
28
28
 
29
- namespace margelo::nitro::googlemapsnitro {
29
+ namespace margelo::nitro::rngooglemapsplus {
30
30
 
31
31
  /**
32
32
  * A struct which can be represented as a JavaScript object (RNPolygon).
@@ -45,29 +45,29 @@ namespace margelo::nitro::googlemapsnitro {
45
45
  explicit RNPolygon(std::string id, double zIndex, std::vector<RNLatLng> coordinates, std::optional<std::string> fillColor, std::optional<std::string> strokeColor, std::optional<double> strokeWidth): id(id), zIndex(zIndex), coordinates(coordinates), fillColor(fillColor), strokeColor(strokeColor), strokeWidth(strokeWidth) {}
46
46
  };
47
47
 
48
- } // namespace margelo::nitro::googlemapsnitro
48
+ } // namespace margelo::nitro::rngooglemapsplus
49
49
 
50
50
  namespace margelo::nitro {
51
51
 
52
52
  // C++ RNPolygon <> JS RNPolygon (object)
53
53
  template <>
54
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNPolygon> final {
55
- static inline margelo::nitro::googlemapsnitro::RNPolygon fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNPolygon> final {
55
+ static inline margelo::nitro::rngooglemapsplus::RNPolygon fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
56
56
  jsi::Object obj = arg.asObject(runtime);
57
- return margelo::nitro::googlemapsnitro::RNPolygon(
57
+ return margelo::nitro::rngooglemapsplus::RNPolygon(
58
58
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "id")),
59
59
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "zIndex")),
60
- JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "coordinates")),
60
+ JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "coordinates")),
61
61
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "fillColor")),
62
62
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "strokeColor")),
63
63
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "strokeWidth"))
64
64
  );
65
65
  }
66
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNPolygon& arg) {
66
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNPolygon& arg) {
67
67
  jsi::Object obj(runtime);
68
68
  obj.setProperty(runtime, "id", JSIConverter<std::string>::toJSI(runtime, arg.id));
69
69
  obj.setProperty(runtime, "zIndex", JSIConverter<double>::toJSI(runtime, arg.zIndex));
70
- obj.setProperty(runtime, "coordinates", JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::toJSI(runtime, arg.coordinates));
70
+ obj.setProperty(runtime, "coordinates", JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::toJSI(runtime, arg.coordinates));
71
71
  obj.setProperty(runtime, "fillColor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.fillColor));
72
72
  obj.setProperty(runtime, "strokeColor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.strokeColor));
73
73
  obj.setProperty(runtime, "strokeWidth", JSIConverter<std::optional<double>>::toJSI(runtime, arg.strokeWidth));
@@ -80,7 +80,7 @@ namespace margelo::nitro {
80
80
  jsi::Object obj = value.getObject(runtime);
81
81
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
82
82
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
83
- if (!JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "coordinates"))) return false;
83
+ if (!JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "coordinates"))) return false;
84
84
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "fillColor"))) return false;
85
85
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "strokeColor"))) return false;
86
86
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "strokeWidth"))) return false;
@@ -19,11 +19,11 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
  // Forward declaration of `RNLineCapType` to properly resolve imports.
24
- namespace margelo::nitro::googlemapsnitro { enum class RNLineCapType; }
24
+ namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
25
25
  // Forward declaration of `RNLineJoinType` to properly resolve imports.
26
- namespace margelo::nitro::googlemapsnitro { enum class RNLineJoinType; }
26
+ namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
27
27
 
28
28
  #include <string>
29
29
  #include "RNLatLng.hpp"
@@ -32,7 +32,7 @@ namespace margelo::nitro::googlemapsnitro { enum class RNLineJoinType; }
32
32
  #include <optional>
33
33
  #include "RNLineJoinType.hpp"
34
34
 
35
- namespace margelo::nitro::googlemapsnitro {
35
+ namespace margelo::nitro::rngooglemapsplus {
36
36
 
37
37
  /**
38
38
  * A struct which can be represented as a JavaScript object (RNPolyline).
@@ -52,32 +52,32 @@ namespace margelo::nitro::googlemapsnitro {
52
52
  explicit RNPolyline(std::string id, double zIndex, std::vector<RNLatLng> coordinates, std::optional<RNLineCapType> lineCap, std::optional<RNLineJoinType> lineJoin, std::optional<std::string> color, std::optional<double> width): id(id), zIndex(zIndex), coordinates(coordinates), lineCap(lineCap), lineJoin(lineJoin), color(color), width(width) {}
53
53
  };
54
54
 
55
- } // namespace margelo::nitro::googlemapsnitro
55
+ } // namespace margelo::nitro::rngooglemapsplus
56
56
 
57
57
  namespace margelo::nitro {
58
58
 
59
59
  // C++ RNPolyline <> JS RNPolyline (object)
60
60
  template <>
61
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNPolyline> final {
62
- static inline margelo::nitro::googlemapsnitro::RNPolyline fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
61
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNPolyline> final {
62
+ static inline margelo::nitro::rngooglemapsplus::RNPolyline fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
63
  jsi::Object obj = arg.asObject(runtime);
64
- return margelo::nitro::googlemapsnitro::RNPolyline(
64
+ return margelo::nitro::rngooglemapsplus::RNPolyline(
65
65
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "id")),
66
66
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "zIndex")),
67
- JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "coordinates")),
68
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineCapType>>::fromJSI(runtime, obj.getProperty(runtime, "lineCap")),
69
- JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineJoinType>>::fromJSI(runtime, obj.getProperty(runtime, "lineJoin")),
67
+ JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::fromJSI(runtime, obj.getProperty(runtime, "coordinates")),
68
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineCapType>>::fromJSI(runtime, obj.getProperty(runtime, "lineCap")),
69
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineJoinType>>::fromJSI(runtime, obj.getProperty(runtime, "lineJoin")),
70
70
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "color")),
71
71
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "width"))
72
72
  );
73
73
  }
74
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNPolyline& arg) {
74
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNPolyline& arg) {
75
75
  jsi::Object obj(runtime);
76
76
  obj.setProperty(runtime, "id", JSIConverter<std::string>::toJSI(runtime, arg.id));
77
77
  obj.setProperty(runtime, "zIndex", JSIConverter<double>::toJSI(runtime, arg.zIndex));
78
- obj.setProperty(runtime, "coordinates", JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::toJSI(runtime, arg.coordinates));
79
- obj.setProperty(runtime, "lineCap", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineCapType>>::toJSI(runtime, arg.lineCap));
80
- obj.setProperty(runtime, "lineJoin", JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineJoinType>>::toJSI(runtime, arg.lineJoin));
78
+ obj.setProperty(runtime, "coordinates", JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::toJSI(runtime, arg.coordinates));
79
+ obj.setProperty(runtime, "lineCap", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineCapType>>::toJSI(runtime, arg.lineCap));
80
+ obj.setProperty(runtime, "lineJoin", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineJoinType>>::toJSI(runtime, arg.lineJoin));
81
81
  obj.setProperty(runtime, "color", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.color));
82
82
  obj.setProperty(runtime, "width", JSIConverter<std::optional<double>>::toJSI(runtime, arg.width));
83
83
  return obj;
@@ -89,9 +89,9 @@ namespace margelo::nitro {
89
89
  jsi::Object obj = value.getObject(runtime);
90
90
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
91
91
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
92
- if (!JSIConverter<std::vector<margelo::nitro::googlemapsnitro::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "coordinates"))) return false;
93
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineCapType>>::canConvert(runtime, obj.getProperty(runtime, "lineCap"))) return false;
94
- if (!JSIConverter<std::optional<margelo::nitro::googlemapsnitro::RNLineJoinType>>::canConvert(runtime, obj.getProperty(runtime, "lineJoin"))) return false;
92
+ if (!JSIConverter<std::vector<margelo::nitro::rngooglemapsplus::RNLatLng>>::canConvert(runtime, obj.getProperty(runtime, "coordinates"))) return false;
93
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineCapType>>::canConvert(runtime, obj.getProperty(runtime, "lineCap"))) return false;
94
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNLineJoinType>>::canConvert(runtime, obj.getProperty(runtime, "lineJoin"))) return false;
95
95
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "color"))) return false;
96
96
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "width"))) return false;
97
97
  return true;
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- namespace margelo::nitro::googlemapsnitro {
25
+ namespace margelo::nitro::rngooglemapsplus {
26
26
 
27
27
  /**
28
28
  * A struct which can be represented as a JavaScript object (RNPosition).
@@ -37,21 +37,21 @@ namespace margelo::nitro::googlemapsnitro {
37
37
  explicit RNPosition(double x, double y): x(x), y(y) {}
38
38
  };
39
39
 
40
- } // namespace margelo::nitro::googlemapsnitro
40
+ } // namespace margelo::nitro::rngooglemapsplus
41
41
 
42
42
  namespace margelo::nitro {
43
43
 
44
44
  // C++ RNPosition <> JS RNPosition (object)
45
45
  template <>
46
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNPosition> final {
47
- static inline margelo::nitro::googlemapsnitro::RNPosition fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
46
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNPosition> final {
47
+ static inline margelo::nitro::rngooglemapsplus::RNPosition fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
48
48
  jsi::Object obj = arg.asObject(runtime);
49
- return margelo::nitro::googlemapsnitro::RNPosition(
49
+ return margelo::nitro::rngooglemapsplus::RNPosition(
50
50
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "x")),
51
51
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "y"))
52
52
  );
53
53
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNPosition& arg) {
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNPosition& arg) {
55
55
  jsi::Object obj(runtime);
56
56
  obj.setProperty(runtime, "x", JSIConverter<double>::toJSI(runtime, arg.x));
57
57
  obj.setProperty(runtime, "y", JSIConverter<double>::toJSI(runtime, arg.y));
@@ -19,11 +19,11 @@
19
19
  #endif
20
20
 
21
21
  // Forward declaration of `RNLatLng` to properly resolve imports.
22
- namespace margelo::nitro::googlemapsnitro { struct RNLatLng; }
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
 
24
24
  #include "RNLatLng.hpp"
25
25
 
26
- namespace margelo::nitro::googlemapsnitro {
26
+ namespace margelo::nitro::rngooglemapsplus {
27
27
 
28
28
  /**
29
29
  * A struct which can be represented as a JavaScript object (RNRegion).
@@ -39,24 +39,24 @@ namespace margelo::nitro::googlemapsnitro {
39
39
  explicit RNRegion(RNLatLng center, double latitudeDelta, double longitudeDelta): center(center), latitudeDelta(latitudeDelta), longitudeDelta(longitudeDelta) {}
40
40
  };
41
41
 
42
- } // namespace margelo::nitro::googlemapsnitro
42
+ } // namespace margelo::nitro::rngooglemapsplus
43
43
 
44
44
  namespace margelo::nitro {
45
45
 
46
46
  // C++ RNRegion <> JS RNRegion (object)
47
47
  template <>
48
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNRegion> final {
49
- static inline margelo::nitro::googlemapsnitro::RNRegion fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
48
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNRegion> final {
49
+ static inline margelo::nitro::rngooglemapsplus::RNRegion fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
50
50
  jsi::Object obj = arg.asObject(runtime);
51
- return margelo::nitro::googlemapsnitro::RNRegion(
52
- JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "center")),
51
+ return margelo::nitro::rngooglemapsplus::RNRegion(
52
+ JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "center")),
53
53
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "latitudeDelta")),
54
54
  JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "longitudeDelta"))
55
55
  );
56
56
  }
57
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::googlemapsnitro::RNRegion& arg) {
57
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNRegion& arg) {
58
58
  jsi::Object obj(runtime);
59
- obj.setProperty(runtime, "center", JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::toJSI(runtime, arg.center));
59
+ obj.setProperty(runtime, "center", JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::toJSI(runtime, arg.center));
60
60
  obj.setProperty(runtime, "latitudeDelta", JSIConverter<double>::toJSI(runtime, arg.latitudeDelta));
61
61
  obj.setProperty(runtime, "longitudeDelta", JSIConverter<double>::toJSI(runtime, arg.longitudeDelta));
62
62
  return obj;
@@ -66,7 +66,7 @@ namespace margelo::nitro {
66
66
  return false;
67
67
  }
68
68
  jsi::Object obj = value.getObject(runtime);
69
- if (!JSIConverter<margelo::nitro::googlemapsnitro::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
69
+ if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "center"))) return false;
70
70
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "latitudeDelta"))) return false;
71
71
  if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "longitudeDelta"))) return false;
72
72
  return true;
@@ -23,7 +23,7 @@
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
25
 
26
- namespace margelo::nitro::googlemapsnitro {
26
+ namespace margelo::nitro::rngooglemapsplus {
27
27
 
28
28
  /**
29
29
  * An enum which can be represented as a JavaScript union (RNUserInterfaceStyle).
@@ -34,28 +34,28 @@ namespace margelo::nitro::googlemapsnitro {
34
34
  DEFAULT SWIFT_NAME(default) = 2,
35
35
  } CLOSED_ENUM;
36
36
 
37
- } // namespace margelo::nitro::googlemapsnitro
37
+ } // namespace margelo::nitro::rngooglemapsplus
38
38
 
39
39
  namespace margelo::nitro {
40
40
 
41
41
  // C++ RNUserInterfaceStyle <> JS RNUserInterfaceStyle (union)
42
42
  template <>
43
- struct JSIConverter<margelo::nitro::googlemapsnitro::RNUserInterfaceStyle> final {
44
- static inline margelo::nitro::googlemapsnitro::RNUserInterfaceStyle fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
43
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle> final {
44
+ static inline margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
45
  std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
46
46
  switch (hashString(unionValue.c_str(), unionValue.size())) {
47
- case hashString("light"): return margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::LIGHT;
48
- case hashString("dark"): return margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::DARK;
49
- case hashString("default"): return margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::DEFAULT;
47
+ case hashString("light"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::LIGHT;
48
+ case hashString("dark"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DARK;
49
+ case hashString("default"): return margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DEFAULT;
50
50
  default: [[unlikely]]
51
51
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum RNUserInterfaceStyle - invalid value!");
52
52
  }
53
53
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::googlemapsnitro::RNUserInterfaceStyle arg) {
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle arg) {
55
55
  switch (arg) {
56
- case margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::LIGHT: return JSIConverter<std::string>::toJSI(runtime, "light");
57
- case margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::DARK: return JSIConverter<std::string>::toJSI(runtime, "dark");
58
- case margelo::nitro::googlemapsnitro::RNUserInterfaceStyle::DEFAULT: return JSIConverter<std::string>::toJSI(runtime, "default");
56
+ case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::LIGHT: return JSIConverter<std::string>::toJSI(runtime, "light");
57
+ case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DARK: return JSIConverter<std::string>::toJSI(runtime, "dark");
58
+ case margelo::nitro::rngooglemapsplus::RNUserInterfaceStyle::DEFAULT: return JSIConverter<std::string>::toJSI(runtime, "default");
59
59
  default: [[unlikely]]
60
60
  throw std::invalid_argument("Cannot convert RNUserInterfaceStyle to JS - invalid value: "
61
61
  + std::to_string(static_cast<int>(arg)) + "!");