react-native-maps 1.26.0 → 1.26.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 (47) hide show
  1. package/README.md +13 -11
  2. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  3. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +2 -1
  4. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +2 -1
  5. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +2 -1
  6. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +1 -1
  7. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +2 -1
  8. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +1 -1
  9. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +2 -1
  10. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +2 -1
  11. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +2 -1
  12. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsUrlTileManagerInterface.java +2 -1
  13. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsWMSTileManagerInterface.java +2 -1
  14. package/android/src/main/jni/CMakeLists.txt +1 -9
  15. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +517 -517
  16. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +808 -20
  17. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +664 -0
  18. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.h +12 -111
  19. package/ios/generated/RCTAppDependencyProvider.mm +13 -28
  20. package/ios/generated/RCTModuleProviders.h +16 -0
  21. package/ios/generated/RCTModuleProviders.mm +51 -0
  22. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +30 -9
  23. package/ios/generated/RCTThirdPartyComponentsProvider.mm +9 -2
  24. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
  25. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
  26. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +517 -517
  27. package/ios/generated/RNMapsSpecs/Props.cpp +808 -20
  28. package/ios/generated/RNMapsSpecs/Props.h +664 -0
  29. package/ios/generated/RNMapsSpecs/States.h +12 -111
  30. package/ios/generated/ReactAppDependencyProvider.podspec +1 -1
  31. package/ios/generated/ReactCodegen.podspec +120 -0
  32. package/package.json +14 -14
  33. package/plugin/build/android.js +2 -2
  34. package/plugin/build/ios.js +8 -8
  35. package/react-native-maps.podspec +4 -0
  36. package/src/MapMarkerNativeComponent.ts +1 -1
  37. package/src/MapViewNativeComponent.ts +1 -1
  38. package/src/specs/NativeComponentCallout.ts +1 -1
  39. package/src/specs/NativeComponentCircle.ts +1 -1
  40. package/src/specs/NativeComponentGoogleMapView.ts +1 -2
  41. package/src/specs/NativeComponentGooglePolygon.ts +1 -1
  42. package/src/specs/NativeComponentMapView.ts +1 -2
  43. package/src/specs/NativeComponentMarker.ts +1 -2
  44. package/src/specs/NativeComponentOverlay.ts +1 -1
  45. package/src/specs/NativeComponentPolyline.ts +1 -1
  46. package/src/specs/NativeComponentUrlTile.ts +1 -1
  47. package/src/specs/NativeComponentWMSTile.ts +1 -1
@@ -27,11 +27,28 @@ class RNMapsCalloutProps final : public ViewProps {
27
27
 
28
28
  bool alphaHitTest{false};
29
29
  bool tooltip{false};
30
+
31
+ #ifdef RN_SERIALIZABLE_STATE
32
+ ComponentName getDiffPropsImplementationTarget() const override;
33
+
34
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
35
+ #endif
30
36
  };
31
37
 
32
38
  struct RNMapsCircleCenterStruct {
33
39
  double latitude{0.0};
34
40
  double longitude{0.0};
41
+
42
+ #ifdef RN_SERIALIZABLE_STATE
43
+ bool operator==(const RNMapsCircleCenterStruct&) const = default;
44
+
45
+ folly::dynamic toDynamic() const {
46
+ folly::dynamic result = folly::dynamic::object();
47
+ result["latitude"] = latitude;
48
+ result["longitude"] = longitude;
49
+ return result;
50
+ }
51
+ #endif
35
52
  };
36
53
 
37
54
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsCircleCenterStruct &result) {
@@ -50,6 +67,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
50
67
  static inline std::string toString(const RNMapsCircleCenterStruct &value) {
51
68
  return "[Object RNMapsCircleCenterStruct]";
52
69
  }
70
+
71
+ #ifdef RN_SERIALIZABLE_STATE
72
+ static inline folly::dynamic toDynamic(const RNMapsCircleCenterStruct &value) {
73
+ return value.toDynamic();
74
+ }
75
+ #endif
53
76
  class RNMapsCircleProps final : public ViewProps {
54
77
  public:
55
78
  RNMapsCircleProps() = default;
@@ -63,6 +86,12 @@ class RNMapsCircleProps final : public ViewProps {
63
86
  SharedColor strokeColor{};
64
87
  Float strokeWidth{1.0};
65
88
  bool tappable{false};
89
+
90
+ #ifdef RN_SERIALIZABLE_STATE
91
+ ComponentName getDiffPropsImplementationTarget() const override;
92
+
93
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
94
+ #endif
66
95
  };
67
96
 
68
97
  enum class RNMapsGoogleMapViewMapType { Hybrid, MutedStandard, None, Satellite, Standard, Terrain, SatelliteFlyover, HybridFlyover };
@@ -92,6 +121,12 @@ static inline std::string toString(const RNMapsGoogleMapViewMapType &value) {
92
121
  case RNMapsGoogleMapViewMapType::HybridFlyover: return "hybridFlyover";
93
122
  }
94
123
  }
124
+
125
+ #ifdef RN_SERIALIZABLE_STATE
126
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewMapType &value) {
127
+ return toString(value);
128
+ }
129
+ #endif
95
130
  enum class RNMapsGoogleMapViewPaddingAdjustmentBehavior { Always, Automatic, Never };
96
131
 
97
132
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewPaddingAdjustmentBehavior &result) {
@@ -109,6 +144,12 @@ static inline std::string toString(const RNMapsGoogleMapViewPaddingAdjustmentBeh
109
144
  case RNMapsGoogleMapViewPaddingAdjustmentBehavior::Never: return "never";
110
145
  }
111
146
  }
147
+
148
+ #ifdef RN_SERIALIZABLE_STATE
149
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewPaddingAdjustmentBehavior &value) {
150
+ return toString(value);
151
+ }
152
+ #endif
112
153
  enum class RNMapsGoogleMapViewUserInterfaceStyle { System, Light, Dark };
113
154
 
114
155
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewUserInterfaceStyle &result) {
@@ -126,6 +167,12 @@ static inline std::string toString(const RNMapsGoogleMapViewUserInterfaceStyle &
126
167
  case RNMapsGoogleMapViewUserInterfaceStyle::Dark: return "dark";
127
168
  }
128
169
  }
170
+
171
+ #ifdef RN_SERIALIZABLE_STATE
172
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewUserInterfaceStyle &value) {
173
+ return toString(value);
174
+ }
175
+ #endif
129
176
  enum class RNMapsGoogleMapViewUserLocationPriority { Balanced, High, Low, Passive };
130
177
 
131
178
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewUserLocationPriority &result) {
@@ -145,9 +192,26 @@ static inline std::string toString(const RNMapsGoogleMapViewUserLocationPriority
145
192
  case RNMapsGoogleMapViewUserLocationPriority::Passive: return "passive";
146
193
  }
147
194
  }
195
+
196
+ #ifdef RN_SERIALIZABLE_STATE
197
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewUserLocationPriority &value) {
198
+ return toString(value);
199
+ }
200
+ #endif
148
201
  struct RNMapsGoogleMapViewCameraCenterStruct {
149
202
  double latitude{0.0};
150
203
  double longitude{0.0};
204
+
205
+ #ifdef RN_SERIALIZABLE_STATE
206
+ bool operator==(const RNMapsGoogleMapViewCameraCenterStruct&) const = default;
207
+
208
+ folly::dynamic toDynamic() const {
209
+ folly::dynamic result = folly::dynamic::object();
210
+ result["latitude"] = latitude;
211
+ result["longitude"] = longitude;
212
+ return result;
213
+ }
214
+ #endif
151
215
  };
152
216
 
153
217
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewCameraCenterStruct &result) {
@@ -167,12 +231,32 @@ static inline std::string toString(const RNMapsGoogleMapViewCameraCenterStruct &
167
231
  return "[Object RNMapsGoogleMapViewCameraCenterStruct]";
168
232
  }
169
233
 
234
+ #ifdef RN_SERIALIZABLE_STATE
235
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewCameraCenterStruct &value) {
236
+ return value.toDynamic();
237
+ }
238
+ #endif
239
+
170
240
  struct RNMapsGoogleMapViewCameraStruct {
171
241
  double altitude{0.0};
172
242
  RNMapsGoogleMapViewCameraCenterStruct center{};
173
243
  double heading{0.0};
174
244
  double pitch{0.0};
175
245
  Float zoom{0.0};
246
+
247
+ #ifdef RN_SERIALIZABLE_STATE
248
+ bool operator==(const RNMapsGoogleMapViewCameraStruct&) const = default;
249
+
250
+ folly::dynamic toDynamic() const {
251
+ folly::dynamic result = folly::dynamic::object();
252
+ result["altitude"] = altitude;
253
+ result["center"] = ::facebook::react::toDynamic(center);
254
+ result["heading"] = heading;
255
+ result["pitch"] = pitch;
256
+ result["zoom"] = zoom;
257
+ return result;
258
+ }
259
+ #endif
176
260
  };
177
261
 
178
262
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewCameraStruct &result) {
@@ -204,9 +288,26 @@ static inline std::string toString(const RNMapsGoogleMapViewCameraStruct &value)
204
288
  return "[Object RNMapsGoogleMapViewCameraStruct]";
205
289
  }
206
290
 
291
+ #ifdef RN_SERIALIZABLE_STATE
292
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewCameraStruct &value) {
293
+ return value.toDynamic();
294
+ }
295
+ #endif
296
+
207
297
  struct RNMapsGoogleMapViewInitialCameraCenterStruct {
208
298
  double latitude{0.0};
209
299
  double longitude{0.0};
300
+
301
+ #ifdef RN_SERIALIZABLE_STATE
302
+ bool operator==(const RNMapsGoogleMapViewInitialCameraCenterStruct&) const = default;
303
+
304
+ folly::dynamic toDynamic() const {
305
+ folly::dynamic result = folly::dynamic::object();
306
+ result["latitude"] = latitude;
307
+ result["longitude"] = longitude;
308
+ return result;
309
+ }
310
+ #endif
210
311
  };
211
312
 
212
313
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewInitialCameraCenterStruct &result) {
@@ -226,12 +327,32 @@ static inline std::string toString(const RNMapsGoogleMapViewInitialCameraCenterS
226
327
  return "[Object RNMapsGoogleMapViewInitialCameraCenterStruct]";
227
328
  }
228
329
 
330
+ #ifdef RN_SERIALIZABLE_STATE
331
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewInitialCameraCenterStruct &value) {
332
+ return value.toDynamic();
333
+ }
334
+ #endif
335
+
229
336
  struct RNMapsGoogleMapViewInitialCameraStruct {
230
337
  double altitude{0.0};
231
338
  RNMapsGoogleMapViewInitialCameraCenterStruct center{};
232
339
  double heading{0.0};
233
340
  double pitch{0.0};
234
341
  Float zoom{0.0};
342
+
343
+ #ifdef RN_SERIALIZABLE_STATE
344
+ bool operator==(const RNMapsGoogleMapViewInitialCameraStruct&) const = default;
345
+
346
+ folly::dynamic toDynamic() const {
347
+ folly::dynamic result = folly::dynamic::object();
348
+ result["altitude"] = altitude;
349
+ result["center"] = ::facebook::react::toDynamic(center);
350
+ result["heading"] = heading;
351
+ result["pitch"] = pitch;
352
+ result["zoom"] = zoom;
353
+ return result;
354
+ }
355
+ #endif
235
356
  };
236
357
 
237
358
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewInitialCameraStruct &result) {
@@ -263,11 +384,30 @@ static inline std::string toString(const RNMapsGoogleMapViewInitialCameraStruct
263
384
  return "[Object RNMapsGoogleMapViewInitialCameraStruct]";
264
385
  }
265
386
 
387
+ #ifdef RN_SERIALIZABLE_STATE
388
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewInitialCameraStruct &value) {
389
+ return value.toDynamic();
390
+ }
391
+ #endif
392
+
266
393
  struct RNMapsGoogleMapViewInitialRegionStruct {
267
394
  double latitude{0.0};
268
395
  double longitude{0.0};
269
396
  double latitudeDelta{0.0};
270
397
  double longitudeDelta{0.0};
398
+
399
+ #ifdef RN_SERIALIZABLE_STATE
400
+ bool operator==(const RNMapsGoogleMapViewInitialRegionStruct&) const = default;
401
+
402
+ folly::dynamic toDynamic() const {
403
+ folly::dynamic result = folly::dynamic::object();
404
+ result["latitude"] = latitude;
405
+ result["longitude"] = longitude;
406
+ result["latitudeDelta"] = latitudeDelta;
407
+ result["longitudeDelta"] = longitudeDelta;
408
+ return result;
409
+ }
410
+ #endif
271
411
  };
272
412
 
273
413
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewInitialRegionStruct &result) {
@@ -295,11 +435,30 @@ static inline std::string toString(const RNMapsGoogleMapViewInitialRegionStruct
295
435
  return "[Object RNMapsGoogleMapViewInitialRegionStruct]";
296
436
  }
297
437
 
438
+ #ifdef RN_SERIALIZABLE_STATE
439
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewInitialRegionStruct &value) {
440
+ return value.toDynamic();
441
+ }
442
+ #endif
443
+
298
444
  struct RNMapsGoogleMapViewMapPaddingStruct {
299
445
  double top{0.0};
300
446
  double right{0.0};
301
447
  double bottom{0.0};
302
448
  double left{0.0};
449
+
450
+ #ifdef RN_SERIALIZABLE_STATE
451
+ bool operator==(const RNMapsGoogleMapViewMapPaddingStruct&) const = default;
452
+
453
+ folly::dynamic toDynamic() const {
454
+ folly::dynamic result = folly::dynamic::object();
455
+ result["top"] = top;
456
+ result["right"] = right;
457
+ result["bottom"] = bottom;
458
+ result["left"] = left;
459
+ return result;
460
+ }
461
+ #endif
303
462
  };
304
463
 
305
464
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewMapPaddingStruct &result) {
@@ -327,11 +486,30 @@ static inline std::string toString(const RNMapsGoogleMapViewMapPaddingStruct &va
327
486
  return "[Object RNMapsGoogleMapViewMapPaddingStruct]";
328
487
  }
329
488
 
489
+ #ifdef RN_SERIALIZABLE_STATE
490
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewMapPaddingStruct &value) {
491
+ return value.toDynamic();
492
+ }
493
+ #endif
494
+
330
495
  struct RNMapsGoogleMapViewRegionStruct {
331
496
  double latitude{0.0};
332
497
  double longitude{0.0};
333
498
  double latitudeDelta{0.0};
334
499
  double longitudeDelta{0.0};
500
+
501
+ #ifdef RN_SERIALIZABLE_STATE
502
+ bool operator==(const RNMapsGoogleMapViewRegionStruct&) const = default;
503
+
504
+ folly::dynamic toDynamic() const {
505
+ folly::dynamic result = folly::dynamic::object();
506
+ result["latitude"] = latitude;
507
+ result["longitude"] = longitude;
508
+ result["latitudeDelta"] = latitudeDelta;
509
+ result["longitudeDelta"] = longitudeDelta;
510
+ return result;
511
+ }
512
+ #endif
335
513
  };
336
514
 
337
515
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGoogleMapViewRegionStruct &result) {
@@ -358,6 +536,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
358
536
  static inline std::string toString(const RNMapsGoogleMapViewRegionStruct &value) {
359
537
  return "[Object RNMapsGoogleMapViewRegionStruct]";
360
538
  }
539
+
540
+ #ifdef RN_SERIALIZABLE_STATE
541
+ static inline folly::dynamic toDynamic(const RNMapsGoogleMapViewRegionStruct &value) {
542
+ return value.toDynamic();
543
+ }
544
+ #endif
361
545
  class RNMapsGoogleMapViewProps final : public ViewProps {
362
546
  public:
363
547
  RNMapsGoogleMapViewProps() = default;
@@ -398,11 +582,28 @@ class RNMapsGoogleMapViewProps final : public ViewProps {
398
582
  bool zoomControlEnabled{false};
399
583
  bool zoomEnabled{true};
400
584
  bool zoomTapEnabled{true};
585
+
586
+ #ifdef RN_SERIALIZABLE_STATE
587
+ ComponentName getDiffPropsImplementationTarget() const override;
588
+
589
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
590
+ #endif
401
591
  };
402
592
 
403
593
  struct RNMapsGooglePolygonCoordinatesStruct {
404
594
  double latitude{0.0};
405
595
  double longitude{0.0};
596
+
597
+ #ifdef RN_SERIALIZABLE_STATE
598
+ bool operator==(const RNMapsGooglePolygonCoordinatesStruct&) const = default;
599
+
600
+ folly::dynamic toDynamic() const {
601
+ folly::dynamic result = folly::dynamic::object();
602
+ result["latitude"] = latitude;
603
+ result["longitude"] = longitude;
604
+ return result;
605
+ }
606
+ #endif
406
607
  };
407
608
 
408
609
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGooglePolygonCoordinatesStruct &result) {
@@ -422,6 +623,12 @@ static inline std::string toString(const RNMapsGooglePolygonCoordinatesStruct &v
422
623
  return "[Object RNMapsGooglePolygonCoordinatesStruct]";
423
624
  }
424
625
 
626
+ #ifdef RN_SERIALIZABLE_STATE
627
+ static inline folly::dynamic toDynamic(const RNMapsGooglePolygonCoordinatesStruct &value) {
628
+ return value.toDynamic();
629
+ }
630
+ #endif
631
+
425
632
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<RNMapsGooglePolygonCoordinatesStruct> &result) {
426
633
  auto items = (std::vector<RawValue>)value;
427
634
  for (const auto &item : items) {
@@ -435,6 +642,17 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
435
642
  struct RNMapsGooglePolygonHolesStruct {
436
643
  double latitude{0.0};
437
644
  double longitude{0.0};
645
+
646
+ #ifdef RN_SERIALIZABLE_STATE
647
+ bool operator==(const RNMapsGooglePolygonHolesStruct&) const = default;
648
+
649
+ folly::dynamic toDynamic() const {
650
+ folly::dynamic result = folly::dynamic::object();
651
+ result["latitude"] = latitude;
652
+ result["longitude"] = longitude;
653
+ return result;
654
+ }
655
+ #endif
438
656
  };
439
657
 
440
658
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGooglePolygonHolesStruct &result) {
@@ -454,6 +672,12 @@ static inline std::string toString(const RNMapsGooglePolygonHolesStruct &value)
454
672
  return "[Object RNMapsGooglePolygonHolesStruct]";
455
673
  }
456
674
 
675
+ #ifdef RN_SERIALIZABLE_STATE
676
+ static inline folly::dynamic toDynamic(const RNMapsGooglePolygonHolesStruct &value) {
677
+ return value.toDynamic();
678
+ }
679
+ #endif
680
+
457
681
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<std::vector<RNMapsGooglePolygonHolesStruct>> &result) {
458
682
  auto items = (std::vector<std::vector<RawValue>>)value;
459
683
  for (const std::vector<RawValue> &item : items) {
@@ -481,6 +705,12 @@ class RNMapsGooglePolygonProps final : public ViewProps {
481
705
  bool geodesic{false};
482
706
  std::vector<std::vector<RNMapsGooglePolygonHolesStruct>> holes{};
483
707
  bool tappable{false};
708
+
709
+ #ifdef RN_SERIALIZABLE_STATE
710
+ ComponentName getDiffPropsImplementationTarget() const override;
711
+
712
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
713
+ #endif
484
714
  };
485
715
 
486
716
  enum class RNMapsMapViewGoogleRenderer { LATEST, LEGACY };
@@ -498,6 +728,12 @@ static inline std::string toString(const RNMapsMapViewGoogleRenderer &value) {
498
728
  case RNMapsMapViewGoogleRenderer::LEGACY: return "LEGACY";
499
729
  }
500
730
  }
731
+
732
+ #ifdef RN_SERIALIZABLE_STATE
733
+ static inline folly::dynamic toDynamic(const RNMapsMapViewGoogleRenderer &value) {
734
+ return toString(value);
735
+ }
736
+ #endif
501
737
  enum class RNMapsMapViewMapType { Hybrid, MutedStandard, None, Satellite, Standard, Terrain, SatelliteFlyover, HybridFlyover };
502
738
 
503
739
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewMapType &result) {
@@ -525,6 +761,12 @@ static inline std::string toString(const RNMapsMapViewMapType &value) {
525
761
  case RNMapsMapViewMapType::HybridFlyover: return "hybridFlyover";
526
762
  }
527
763
  }
764
+
765
+ #ifdef RN_SERIALIZABLE_STATE
766
+ static inline folly::dynamic toDynamic(const RNMapsMapViewMapType &value) {
767
+ return toString(value);
768
+ }
769
+ #endif
528
770
  enum class RNMapsMapViewPaddingAdjustmentBehavior { Always, Automatic, Never };
529
771
 
530
772
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewPaddingAdjustmentBehavior &result) {
@@ -542,6 +784,12 @@ static inline std::string toString(const RNMapsMapViewPaddingAdjustmentBehavior
542
784
  case RNMapsMapViewPaddingAdjustmentBehavior::Never: return "never";
543
785
  }
544
786
  }
787
+
788
+ #ifdef RN_SERIALIZABLE_STATE
789
+ static inline folly::dynamic toDynamic(const RNMapsMapViewPaddingAdjustmentBehavior &value) {
790
+ return toString(value);
791
+ }
792
+ #endif
545
793
  enum class RNMapsMapViewUserInterfaceStyle { System, Light, Dark };
546
794
 
547
795
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewUserInterfaceStyle &result) {
@@ -559,6 +807,12 @@ static inline std::string toString(const RNMapsMapViewUserInterfaceStyle &value)
559
807
  case RNMapsMapViewUserInterfaceStyle::Dark: return "dark";
560
808
  }
561
809
  }
810
+
811
+ #ifdef RN_SERIALIZABLE_STATE
812
+ static inline folly::dynamic toDynamic(const RNMapsMapViewUserInterfaceStyle &value) {
813
+ return toString(value);
814
+ }
815
+ #endif
562
816
  enum class RNMapsMapViewUserLocationPriority { Balanced, High, Low, Passive };
563
817
 
564
818
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewUserLocationPriority &result) {
@@ -578,9 +832,26 @@ static inline std::string toString(const RNMapsMapViewUserLocationPriority &valu
578
832
  case RNMapsMapViewUserLocationPriority::Passive: return "passive";
579
833
  }
580
834
  }
835
+
836
+ #ifdef RN_SERIALIZABLE_STATE
837
+ static inline folly::dynamic toDynamic(const RNMapsMapViewUserLocationPriority &value) {
838
+ return toString(value);
839
+ }
840
+ #endif
581
841
  struct RNMapsMapViewCameraCenterStruct {
582
842
  double latitude{0.0};
583
843
  double longitude{0.0};
844
+
845
+ #ifdef RN_SERIALIZABLE_STATE
846
+ bool operator==(const RNMapsMapViewCameraCenterStruct&) const = default;
847
+
848
+ folly::dynamic toDynamic() const {
849
+ folly::dynamic result = folly::dynamic::object();
850
+ result["latitude"] = latitude;
851
+ result["longitude"] = longitude;
852
+ return result;
853
+ }
854
+ #endif
584
855
  };
585
856
 
586
857
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraCenterStruct &result) {
@@ -600,12 +871,32 @@ static inline std::string toString(const RNMapsMapViewCameraCenterStruct &value)
600
871
  return "[Object RNMapsMapViewCameraCenterStruct]";
601
872
  }
602
873
 
874
+ #ifdef RN_SERIALIZABLE_STATE
875
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraCenterStruct &value) {
876
+ return value.toDynamic();
877
+ }
878
+ #endif
879
+
603
880
  struct RNMapsMapViewCameraStruct {
604
881
  double altitude{0.0};
605
882
  RNMapsMapViewCameraCenterStruct center{};
606
883
  double heading{0.0};
607
884
  double pitch{0.0};
608
885
  Float zoom{0.0};
886
+
887
+ #ifdef RN_SERIALIZABLE_STATE
888
+ bool operator==(const RNMapsMapViewCameraStruct&) const = default;
889
+
890
+ folly::dynamic toDynamic() const {
891
+ folly::dynamic result = folly::dynamic::object();
892
+ result["altitude"] = altitude;
893
+ result["center"] = ::facebook::react::toDynamic(center);
894
+ result["heading"] = heading;
895
+ result["pitch"] = pitch;
896
+ result["zoom"] = zoom;
897
+ return result;
898
+ }
899
+ #endif
609
900
  };
610
901
 
611
902
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraStruct &result) {
@@ -637,9 +928,26 @@ static inline std::string toString(const RNMapsMapViewCameraStruct &value) {
637
928
  return "[Object RNMapsMapViewCameraStruct]";
638
929
  }
639
930
 
931
+ #ifdef RN_SERIALIZABLE_STATE
932
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraStruct &value) {
933
+ return value.toDynamic();
934
+ }
935
+ #endif
936
+
640
937
  struct RNMapsMapViewCompassOffsetStruct {
641
938
  double x{0.0};
642
939
  double y{0.0};
940
+
941
+ #ifdef RN_SERIALIZABLE_STATE
942
+ bool operator==(const RNMapsMapViewCompassOffsetStruct&) const = default;
943
+
944
+ folly::dynamic toDynamic() const {
945
+ folly::dynamic result = folly::dynamic::object();
946
+ result["x"] = x;
947
+ result["y"] = y;
948
+ return result;
949
+ }
950
+ #endif
643
951
  };
644
952
 
645
953
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCompassOffsetStruct &result) {
@@ -659,9 +967,26 @@ static inline std::string toString(const RNMapsMapViewCompassOffsetStruct &value
659
967
  return "[Object RNMapsMapViewCompassOffsetStruct]";
660
968
  }
661
969
 
970
+ #ifdef RN_SERIALIZABLE_STATE
971
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCompassOffsetStruct &value) {
972
+ return value.toDynamic();
973
+ }
974
+ #endif
975
+
662
976
  struct RNMapsMapViewInitialCameraCenterStruct {
663
977
  double latitude{0.0};
664
978
  double longitude{0.0};
979
+
980
+ #ifdef RN_SERIALIZABLE_STATE
981
+ bool operator==(const RNMapsMapViewInitialCameraCenterStruct&) const = default;
982
+
983
+ folly::dynamic toDynamic() const {
984
+ folly::dynamic result = folly::dynamic::object();
985
+ result["latitude"] = latitude;
986
+ result["longitude"] = longitude;
987
+ return result;
988
+ }
989
+ #endif
665
990
  };
666
991
 
667
992
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialCameraCenterStruct &result) {
@@ -681,12 +1006,32 @@ static inline std::string toString(const RNMapsMapViewInitialCameraCenterStruct
681
1006
  return "[Object RNMapsMapViewInitialCameraCenterStruct]";
682
1007
  }
683
1008
 
1009
+ #ifdef RN_SERIALIZABLE_STATE
1010
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialCameraCenterStruct &value) {
1011
+ return value.toDynamic();
1012
+ }
1013
+ #endif
1014
+
684
1015
  struct RNMapsMapViewInitialCameraStruct {
685
1016
  double altitude{0.0};
686
1017
  RNMapsMapViewInitialCameraCenterStruct center{};
687
1018
  double heading{0.0};
688
1019
  double pitch{0.0};
689
1020
  Float zoom{0.0};
1021
+
1022
+ #ifdef RN_SERIALIZABLE_STATE
1023
+ bool operator==(const RNMapsMapViewInitialCameraStruct&) const = default;
1024
+
1025
+ folly::dynamic toDynamic() const {
1026
+ folly::dynamic result = folly::dynamic::object();
1027
+ result["altitude"] = altitude;
1028
+ result["center"] = ::facebook::react::toDynamic(center);
1029
+ result["heading"] = heading;
1030
+ result["pitch"] = pitch;
1031
+ result["zoom"] = zoom;
1032
+ return result;
1033
+ }
1034
+ #endif
690
1035
  };
691
1036
 
692
1037
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialCameraStruct &result) {
@@ -718,11 +1063,30 @@ static inline std::string toString(const RNMapsMapViewInitialCameraStruct &value
718
1063
  return "[Object RNMapsMapViewInitialCameraStruct]";
719
1064
  }
720
1065
 
1066
+ #ifdef RN_SERIALIZABLE_STATE
1067
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialCameraStruct &value) {
1068
+ return value.toDynamic();
1069
+ }
1070
+ #endif
1071
+
721
1072
  struct RNMapsMapViewInitialRegionStruct {
722
1073
  double latitude{0.0};
723
1074
  double longitude{0.0};
724
1075
  double latitudeDelta{0.0};
725
1076
  double longitudeDelta{0.0};
1077
+
1078
+ #ifdef RN_SERIALIZABLE_STATE
1079
+ bool operator==(const RNMapsMapViewInitialRegionStruct&) const = default;
1080
+
1081
+ folly::dynamic toDynamic() const {
1082
+ folly::dynamic result = folly::dynamic::object();
1083
+ result["latitude"] = latitude;
1084
+ result["longitude"] = longitude;
1085
+ result["latitudeDelta"] = latitudeDelta;
1086
+ result["longitudeDelta"] = longitudeDelta;
1087
+ return result;
1088
+ }
1089
+ #endif
726
1090
  };
727
1091
 
728
1092
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialRegionStruct &result) {
@@ -750,11 +1114,30 @@ static inline std::string toString(const RNMapsMapViewInitialRegionStruct &value
750
1114
  return "[Object RNMapsMapViewInitialRegionStruct]";
751
1115
  }
752
1116
 
1117
+ #ifdef RN_SERIALIZABLE_STATE
1118
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialRegionStruct &value) {
1119
+ return value.toDynamic();
1120
+ }
1121
+ #endif
1122
+
753
1123
  struct RNMapsMapViewLegalLabelInsetsStruct {
754
1124
  double top{0.0};
755
1125
  double right{0.0};
756
1126
  double bottom{0.0};
757
1127
  double left{0.0};
1128
+
1129
+ #ifdef RN_SERIALIZABLE_STATE
1130
+ bool operator==(const RNMapsMapViewLegalLabelInsetsStruct&) const = default;
1131
+
1132
+ folly::dynamic toDynamic() const {
1133
+ folly::dynamic result = folly::dynamic::object();
1134
+ result["top"] = top;
1135
+ result["right"] = right;
1136
+ result["bottom"] = bottom;
1137
+ result["left"] = left;
1138
+ return result;
1139
+ }
1140
+ #endif
758
1141
  };
759
1142
 
760
1143
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewLegalLabelInsetsStruct &result) {
@@ -782,11 +1165,30 @@ static inline std::string toString(const RNMapsMapViewLegalLabelInsetsStruct &va
782
1165
  return "[Object RNMapsMapViewLegalLabelInsetsStruct]";
783
1166
  }
784
1167
 
1168
+ #ifdef RN_SERIALIZABLE_STATE
1169
+ static inline folly::dynamic toDynamic(const RNMapsMapViewLegalLabelInsetsStruct &value) {
1170
+ return value.toDynamic();
1171
+ }
1172
+ #endif
1173
+
785
1174
  struct RNMapsMapViewMapPaddingStruct {
786
1175
  double top{0.0};
787
1176
  double right{0.0};
788
1177
  double bottom{0.0};
789
1178
  double left{0.0};
1179
+
1180
+ #ifdef RN_SERIALIZABLE_STATE
1181
+ bool operator==(const RNMapsMapViewMapPaddingStruct&) const = default;
1182
+
1183
+ folly::dynamic toDynamic() const {
1184
+ folly::dynamic result = folly::dynamic::object();
1185
+ result["top"] = top;
1186
+ result["right"] = right;
1187
+ result["bottom"] = bottom;
1188
+ result["left"] = left;
1189
+ return result;
1190
+ }
1191
+ #endif
790
1192
  };
791
1193
 
792
1194
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewMapPaddingStruct &result) {
@@ -814,11 +1216,30 @@ static inline std::string toString(const RNMapsMapViewMapPaddingStruct &value) {
814
1216
  return "[Object RNMapsMapViewMapPaddingStruct]";
815
1217
  }
816
1218
 
1219
+ #ifdef RN_SERIALIZABLE_STATE
1220
+ static inline folly::dynamic toDynamic(const RNMapsMapViewMapPaddingStruct &value) {
1221
+ return value.toDynamic();
1222
+ }
1223
+ #endif
1224
+
817
1225
  struct RNMapsMapViewRegionStruct {
818
1226
  double latitude{0.0};
819
1227
  double longitude{0.0};
820
1228
  double latitudeDelta{0.0};
821
1229
  double longitudeDelta{0.0};
1230
+
1231
+ #ifdef RN_SERIALIZABLE_STATE
1232
+ bool operator==(const RNMapsMapViewRegionStruct&) const = default;
1233
+
1234
+ folly::dynamic toDynamic() const {
1235
+ folly::dynamic result = folly::dynamic::object();
1236
+ result["latitude"] = latitude;
1237
+ result["longitude"] = longitude;
1238
+ result["latitudeDelta"] = latitudeDelta;
1239
+ result["longitudeDelta"] = longitudeDelta;
1240
+ return result;
1241
+ }
1242
+ #endif
822
1243
  };
823
1244
 
824
1245
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewRegionStruct &result) {
@@ -846,10 +1267,28 @@ static inline std::string toString(const RNMapsMapViewRegionStruct &value) {
846
1267
  return "[Object RNMapsMapViewRegionStruct]";
847
1268
  }
848
1269
 
1270
+ #ifdef RN_SERIALIZABLE_STATE
1271
+ static inline folly::dynamic toDynamic(const RNMapsMapViewRegionStruct &value) {
1272
+ return value.toDynamic();
1273
+ }
1274
+ #endif
1275
+
849
1276
  struct RNMapsMapViewCameraZoomRangeStruct {
850
1277
  double minCenterCoordinateDistance{0.0};
851
1278
  double maxCenterCoordinateDistance{0.0};
852
1279
  bool animated{false};
1280
+
1281
+ #ifdef RN_SERIALIZABLE_STATE
1282
+ bool operator==(const RNMapsMapViewCameraZoomRangeStruct&) const = default;
1283
+
1284
+ folly::dynamic toDynamic() const {
1285
+ folly::dynamic result = folly::dynamic::object();
1286
+ result["minCenterCoordinateDistance"] = minCenterCoordinateDistance;
1287
+ result["maxCenterCoordinateDistance"] = maxCenterCoordinateDistance;
1288
+ result["animated"] = animated;
1289
+ return result;
1290
+ }
1291
+ #endif
853
1292
  };
854
1293
 
855
1294
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraZoomRangeStruct &result) {
@@ -872,6 +1311,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
872
1311
  static inline std::string toString(const RNMapsMapViewCameraZoomRangeStruct &value) {
873
1312
  return "[Object RNMapsMapViewCameraZoomRangeStruct]";
874
1313
  }
1314
+
1315
+ #ifdef RN_SERIALIZABLE_STATE
1316
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraZoomRangeStruct &value) {
1317
+ return value.toDynamic();
1318
+ }
1319
+ #endif
875
1320
  class RNMapsMapViewProps final : public ViewProps {
876
1321
  public:
877
1322
  RNMapsMapViewProps() = default;
@@ -931,6 +1376,12 @@ class RNMapsMapViewProps final : public ViewProps {
931
1376
  bool showsTraffic{false};
932
1377
  bool zoomTapEnabled{true};
933
1378
  RNMapsMapViewCameraZoomRangeStruct cameraZoomRange{};
1379
+
1380
+ #ifdef RN_SERIALIZABLE_STATE
1381
+ ComponentName getDiffPropsImplementationTarget() const override;
1382
+
1383
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1384
+ #endif
934
1385
  };
935
1386
 
936
1387
  enum class RNMapsMarkerDisplayPriority { Required, High, Low };
@@ -950,6 +1401,12 @@ static inline std::string toString(const RNMapsMarkerDisplayPriority &value) {
950
1401
  case RNMapsMarkerDisplayPriority::Low: return "low";
951
1402
  }
952
1403
  }
1404
+
1405
+ #ifdef RN_SERIALIZABLE_STATE
1406
+ static inline folly::dynamic toDynamic(const RNMapsMarkerDisplayPriority &value) {
1407
+ return toString(value);
1408
+ }
1409
+ #endif
953
1410
  enum class RNMapsMarkerTitleVisibility { Hidden, Adaptive, Visible };
954
1411
 
955
1412
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerTitleVisibility &result) {
@@ -967,6 +1424,12 @@ static inline std::string toString(const RNMapsMarkerTitleVisibility &value) {
967
1424
  case RNMapsMarkerTitleVisibility::Visible: return "visible";
968
1425
  }
969
1426
  }
1427
+
1428
+ #ifdef RN_SERIALIZABLE_STATE
1429
+ static inline folly::dynamic toDynamic(const RNMapsMarkerTitleVisibility &value) {
1430
+ return toString(value);
1431
+ }
1432
+ #endif
970
1433
  enum class RNMapsMarkerSubtitleVisibility { Hidden, Adaptive, Visible };
971
1434
 
972
1435
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerSubtitleVisibility &result) {
@@ -984,9 +1447,26 @@ static inline std::string toString(const RNMapsMarkerSubtitleVisibility &value)
984
1447
  case RNMapsMarkerSubtitleVisibility::Visible: return "visible";
985
1448
  }
986
1449
  }
1450
+
1451
+ #ifdef RN_SERIALIZABLE_STATE
1452
+ static inline folly::dynamic toDynamic(const RNMapsMarkerSubtitleVisibility &value) {
1453
+ return toString(value);
1454
+ }
1455
+ #endif
987
1456
  struct RNMapsMarkerAnchorStruct {
988
1457
  double x{0.0};
989
1458
  double y{0.0};
1459
+
1460
+ #ifdef RN_SERIALIZABLE_STATE
1461
+ bool operator==(const RNMapsMarkerAnchorStruct&) const = default;
1462
+
1463
+ folly::dynamic toDynamic() const {
1464
+ folly::dynamic result = folly::dynamic::object();
1465
+ result["x"] = x;
1466
+ result["y"] = y;
1467
+ return result;
1468
+ }
1469
+ #endif
990
1470
  };
991
1471
 
992
1472
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerAnchorStruct &result) {
@@ -1006,9 +1486,26 @@ static inline std::string toString(const RNMapsMarkerAnchorStruct &value) {
1006
1486
  return "[Object RNMapsMarkerAnchorStruct]";
1007
1487
  }
1008
1488
 
1489
+ #ifdef RN_SERIALIZABLE_STATE
1490
+ static inline folly::dynamic toDynamic(const RNMapsMarkerAnchorStruct &value) {
1491
+ return value.toDynamic();
1492
+ }
1493
+ #endif
1494
+
1009
1495
  struct RNMapsMarkerCalloutAnchorStruct {
1010
1496
  double x{0.0};
1011
1497
  double y{0.0};
1498
+
1499
+ #ifdef RN_SERIALIZABLE_STATE
1500
+ bool operator==(const RNMapsMarkerCalloutAnchorStruct&) const = default;
1501
+
1502
+ folly::dynamic toDynamic() const {
1503
+ folly::dynamic result = folly::dynamic::object();
1504
+ result["x"] = x;
1505
+ result["y"] = y;
1506
+ return result;
1507
+ }
1508
+ #endif
1012
1509
  };
1013
1510
 
1014
1511
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCalloutAnchorStruct &result) {
@@ -1028,9 +1525,26 @@ static inline std::string toString(const RNMapsMarkerCalloutAnchorStruct &value)
1028
1525
  return "[Object RNMapsMarkerCalloutAnchorStruct]";
1029
1526
  }
1030
1527
 
1528
+ #ifdef RN_SERIALIZABLE_STATE
1529
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCalloutAnchorStruct &value) {
1530
+ return value.toDynamic();
1531
+ }
1532
+ #endif
1533
+
1031
1534
  struct RNMapsMarkerCalloutOffsetStruct {
1032
1535
  double x{0.0};
1033
1536
  double y{0.0};
1537
+
1538
+ #ifdef RN_SERIALIZABLE_STATE
1539
+ bool operator==(const RNMapsMarkerCalloutOffsetStruct&) const = default;
1540
+
1541
+ folly::dynamic toDynamic() const {
1542
+ folly::dynamic result = folly::dynamic::object();
1543
+ result["x"] = x;
1544
+ result["y"] = y;
1545
+ return result;
1546
+ }
1547
+ #endif
1034
1548
  };
1035
1549
 
1036
1550
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCalloutOffsetStruct &result) {
@@ -1050,9 +1564,26 @@ static inline std::string toString(const RNMapsMarkerCalloutOffsetStruct &value)
1050
1564
  return "[Object RNMapsMarkerCalloutOffsetStruct]";
1051
1565
  }
1052
1566
 
1567
+ #ifdef RN_SERIALIZABLE_STATE
1568
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCalloutOffsetStruct &value) {
1569
+ return value.toDynamic();
1570
+ }
1571
+ #endif
1572
+
1053
1573
  struct RNMapsMarkerCenterOffsetStruct {
1054
1574
  double x{0.0};
1055
1575
  double y{0.0};
1576
+
1577
+ #ifdef RN_SERIALIZABLE_STATE
1578
+ bool operator==(const RNMapsMarkerCenterOffsetStruct&) const = default;
1579
+
1580
+ folly::dynamic toDynamic() const {
1581
+ folly::dynamic result = folly::dynamic::object();
1582
+ result["x"] = x;
1583
+ result["y"] = y;
1584
+ return result;
1585
+ }
1586
+ #endif
1056
1587
  };
1057
1588
 
1058
1589
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCenterOffsetStruct &result) {
@@ -1072,9 +1603,26 @@ static inline std::string toString(const RNMapsMarkerCenterOffsetStruct &value)
1072
1603
  return "[Object RNMapsMarkerCenterOffsetStruct]";
1073
1604
  }
1074
1605
 
1606
+ #ifdef RN_SERIALIZABLE_STATE
1607
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCenterOffsetStruct &value) {
1608
+ return value.toDynamic();
1609
+ }
1610
+ #endif
1611
+
1075
1612
  struct RNMapsMarkerCoordinateStruct {
1076
1613
  double latitude{0.0};
1077
1614
  double longitude{0.0};
1615
+
1616
+ #ifdef RN_SERIALIZABLE_STATE
1617
+ bool operator==(const RNMapsMarkerCoordinateStruct&) const = default;
1618
+
1619
+ folly::dynamic toDynamic() const {
1620
+ folly::dynamic result = folly::dynamic::object();
1621
+ result["latitude"] = latitude;
1622
+ result["longitude"] = longitude;
1623
+ return result;
1624
+ }
1625
+ #endif
1078
1626
  };
1079
1627
 
1080
1628
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCoordinateStruct &result) {
@@ -1093,6 +1641,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1093
1641
  static inline std::string toString(const RNMapsMarkerCoordinateStruct &value) {
1094
1642
  return "[Object RNMapsMarkerCoordinateStruct]";
1095
1643
  }
1644
+
1645
+ #ifdef RN_SERIALIZABLE_STATE
1646
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCoordinateStruct &value) {
1647
+ return value.toDynamic();
1648
+ }
1649
+ #endif
1096
1650
  class RNMapsMarkerProps final : public ViewProps {
1097
1651
  public:
1098
1652
  RNMapsMarkerProps() = default;
@@ -1118,11 +1672,28 @@ class RNMapsMarkerProps final : public ViewProps {
1118
1672
  RNMapsMarkerTitleVisibility titleVisibility{RNMapsMarkerTitleVisibility::Visible};
1119
1673
  RNMapsMarkerSubtitleVisibility subtitleVisibility{RNMapsMarkerSubtitleVisibility::Adaptive};
1120
1674
  bool useLegacyPinView{false};
1675
+
1676
+ #ifdef RN_SERIALIZABLE_STATE
1677
+ ComponentName getDiffPropsImplementationTarget() const override;
1678
+
1679
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1680
+ #endif
1121
1681
  };
1122
1682
 
1123
1683
  struct RNMapsOverlayBoundsNorthEastStruct {
1124
1684
  double latitude{0.0};
1125
1685
  double longitude{0.0};
1686
+
1687
+ #ifdef RN_SERIALIZABLE_STATE
1688
+ bool operator==(const RNMapsOverlayBoundsNorthEastStruct&) const = default;
1689
+
1690
+ folly::dynamic toDynamic() const {
1691
+ folly::dynamic result = folly::dynamic::object();
1692
+ result["latitude"] = latitude;
1693
+ result["longitude"] = longitude;
1694
+ return result;
1695
+ }
1696
+ #endif
1126
1697
  };
1127
1698
 
1128
1699
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsNorthEastStruct &result) {
@@ -1142,9 +1713,26 @@ static inline std::string toString(const RNMapsOverlayBoundsNorthEastStruct &val
1142
1713
  return "[Object RNMapsOverlayBoundsNorthEastStruct]";
1143
1714
  }
1144
1715
 
1716
+ #ifdef RN_SERIALIZABLE_STATE
1717
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsNorthEastStruct &value) {
1718
+ return value.toDynamic();
1719
+ }
1720
+ #endif
1721
+
1145
1722
  struct RNMapsOverlayBoundsSouthWestStruct {
1146
1723
  double latitude{0.0};
1147
1724
  double longitude{0.0};
1725
+
1726
+ #ifdef RN_SERIALIZABLE_STATE
1727
+ bool operator==(const RNMapsOverlayBoundsSouthWestStruct&) const = default;
1728
+
1729
+ folly::dynamic toDynamic() const {
1730
+ folly::dynamic result = folly::dynamic::object();
1731
+ result["latitude"] = latitude;
1732
+ result["longitude"] = longitude;
1733
+ return result;
1734
+ }
1735
+ #endif
1148
1736
  };
1149
1737
 
1150
1738
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsSouthWestStruct &result) {
@@ -1164,9 +1752,26 @@ static inline std::string toString(const RNMapsOverlayBoundsSouthWestStruct &val
1164
1752
  return "[Object RNMapsOverlayBoundsSouthWestStruct]";
1165
1753
  }
1166
1754
 
1755
+ #ifdef RN_SERIALIZABLE_STATE
1756
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsSouthWestStruct &value) {
1757
+ return value.toDynamic();
1758
+ }
1759
+ #endif
1760
+
1167
1761
  struct RNMapsOverlayBoundsStruct {
1168
1762
  RNMapsOverlayBoundsNorthEastStruct northEast{};
1169
1763
  RNMapsOverlayBoundsSouthWestStruct southWest{};
1764
+
1765
+ #ifdef RN_SERIALIZABLE_STATE
1766
+ bool operator==(const RNMapsOverlayBoundsStruct&) const = default;
1767
+
1768
+ folly::dynamic toDynamic() const {
1769
+ folly::dynamic result = folly::dynamic::object();
1770
+ result["northEast"] = ::facebook::react::toDynamic(northEast);
1771
+ result["southWest"] = ::facebook::react::toDynamic(southWest);
1772
+ return result;
1773
+ }
1774
+ #endif
1170
1775
  };
1171
1776
 
1172
1777
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsStruct &result) {
@@ -1185,6 +1790,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1185
1790
  static inline std::string toString(const RNMapsOverlayBoundsStruct &value) {
1186
1791
  return "[Object RNMapsOverlayBoundsStruct]";
1187
1792
  }
1793
+
1794
+ #ifdef RN_SERIALIZABLE_STATE
1795
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsStruct &value) {
1796
+ return value.toDynamic();
1797
+ }
1798
+ #endif
1188
1799
  class RNMapsOverlayProps final : public ViewProps {
1189
1800
  public:
1190
1801
  RNMapsOverlayProps() = default;
@@ -1197,6 +1808,12 @@ class RNMapsOverlayProps final : public ViewProps {
1197
1808
  ImageSource image{};
1198
1809
  Float opacity{1.0};
1199
1810
  bool tappable{false};
1811
+
1812
+ #ifdef RN_SERIALIZABLE_STATE
1813
+ ComponentName getDiffPropsImplementationTarget() const override;
1814
+
1815
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1816
+ #endif
1200
1817
  };
1201
1818
 
1202
1819
  enum class RNMapsPolylineLineCap { Butt, Round, Square };
@@ -1216,6 +1833,12 @@ static inline std::string toString(const RNMapsPolylineLineCap &value) {
1216
1833
  case RNMapsPolylineLineCap::Square: return "square";
1217
1834
  }
1218
1835
  }
1836
+
1837
+ #ifdef RN_SERIALIZABLE_STATE
1838
+ static inline folly::dynamic toDynamic(const RNMapsPolylineLineCap &value) {
1839
+ return toString(value);
1840
+ }
1841
+ #endif
1219
1842
  enum class RNMapsPolylineLineJoin { Miter, Round, Bevel };
1220
1843
 
1221
1844
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsPolylineLineJoin &result) {
@@ -1233,9 +1856,26 @@ static inline std::string toString(const RNMapsPolylineLineJoin &value) {
1233
1856
  case RNMapsPolylineLineJoin::Bevel: return "bevel";
1234
1857
  }
1235
1858
  }
1859
+
1860
+ #ifdef RN_SERIALIZABLE_STATE
1861
+ static inline folly::dynamic toDynamic(const RNMapsPolylineLineJoin &value) {
1862
+ return toString(value);
1863
+ }
1864
+ #endif
1236
1865
  struct RNMapsPolylineCoordinatesStruct {
1237
1866
  double latitude{0.0};
1238
1867
  double longitude{0.0};
1868
+
1869
+ #ifdef RN_SERIALIZABLE_STATE
1870
+ bool operator==(const RNMapsPolylineCoordinatesStruct&) const = default;
1871
+
1872
+ folly::dynamic toDynamic() const {
1873
+ folly::dynamic result = folly::dynamic::object();
1874
+ result["latitude"] = latitude;
1875
+ result["longitude"] = longitude;
1876
+ return result;
1877
+ }
1878
+ #endif
1239
1879
  };
1240
1880
 
1241
1881
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsPolylineCoordinatesStruct &result) {
@@ -1255,6 +1895,12 @@ static inline std::string toString(const RNMapsPolylineCoordinatesStruct &value)
1255
1895
  return "[Object RNMapsPolylineCoordinatesStruct]";
1256
1896
  }
1257
1897
 
1898
+ #ifdef RN_SERIALIZABLE_STATE
1899
+ static inline folly::dynamic toDynamic(const RNMapsPolylineCoordinatesStruct &value) {
1900
+ return value.toDynamic();
1901
+ }
1902
+ #endif
1903
+
1258
1904
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<RNMapsPolylineCoordinatesStruct> &result) {
1259
1905
  auto items = (std::vector<RawValue>)value;
1260
1906
  for (const auto &item : items) {
@@ -1280,6 +1926,12 @@ class RNMapsPolylineProps final : public ViewProps {
1280
1926
  std::vector<SharedColor> strokeColors{};
1281
1927
  Float strokeWidth{1.0};
1282
1928
  bool tappable{false};
1929
+
1930
+ #ifdef RN_SERIALIZABLE_STATE
1931
+ ComponentName getDiffPropsImplementationTarget() const override;
1932
+
1933
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1934
+ #endif
1283
1935
  };
1284
1936
 
1285
1937
  class RNMapsUrlTileProps final : public ViewProps {
@@ -1300,6 +1952,12 @@ class RNMapsUrlTileProps final : public ViewProps {
1300
1952
  std::string tileCachePath{};
1301
1953
  int tileSize{256};
1302
1954
  std::string urlTemplate{};
1955
+
1956
+ #ifdef RN_SERIALIZABLE_STATE
1957
+ ComponentName getDiffPropsImplementationTarget() const override;
1958
+
1959
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1960
+ #endif
1303
1961
  };
1304
1962
 
1305
1963
  class RNMapsWMSTileProps final : public ViewProps {
@@ -1318,6 +1976,12 @@ class RNMapsWMSTileProps final : public ViewProps {
1318
1976
  std::string tileCachePath{};
1319
1977
  int tileSize{256};
1320
1978
  std::string urlTemplate{};
1979
+
1980
+ #ifdef RN_SERIALIZABLE_STATE
1981
+ ComponentName getDiffPropsImplementationTarget() const override;
1982
+
1983
+ folly::dynamic getDiffProps(const Props* prevProps) const override;
1984
+ #endif
1321
1985
  };
1322
1986
 
1323
1987
  } // namespace facebook::react