react-native-maps 1.25.6 → 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 (53) 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 +7 -1
  7. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +5 -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/java/com/rnmaps/fabric/MapViewManager.java +11 -0
  15. package/android/src/main/jni/CMakeLists.txt +1 -9
  16. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +517 -517
  17. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +810 -21
  18. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +666 -1
  19. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.h +12 -111
  20. package/ios/AirMaps/AIRMap.h +2 -0
  21. package/ios/AirMaps/AIRMap.mm +181 -0
  22. package/ios/AirMaps/RNMapsMapView.mm +8 -0
  23. package/ios/generated/RCTAppDependencyProvider.mm +13 -28
  24. package/ios/generated/RCTModuleProviders.h +16 -0
  25. package/ios/generated/RCTModuleProviders.mm +51 -0
  26. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +30 -9
  27. package/ios/generated/RCTThirdPartyComponentsProvider.mm +9 -2
  28. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.h +14 -0
  29. package/ios/generated/RCTUnstableModulesRequiringMainQueueSetupProvider.mm +19 -0
  30. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +517 -517
  31. package/ios/generated/RNMapsSpecs/Props.cpp +811 -22
  32. package/ios/generated/RNMapsSpecs/Props.h +667 -2
  33. package/ios/generated/RNMapsSpecs/States.h +12 -111
  34. package/ios/generated/ReactAppDependencyProvider.podspec +1 -1
  35. package/ios/generated/ReactCodegen.podspec +120 -0
  36. package/package.json +14 -14
  37. package/plugin/build/android.js +2 -2
  38. package/plugin/build/ios.js +8 -8
  39. package/react-native-maps.podspec +4 -0
  40. package/src/MapMarkerNativeComponent.ts +1 -1
  41. package/src/MapView.tsx +17 -0
  42. package/src/MapViewNativeComponent.ts +1 -1
  43. package/src/sharedTypes.ts +91 -0
  44. package/src/specs/NativeComponentCallout.ts +1 -1
  45. package/src/specs/NativeComponentCircle.ts +1 -1
  46. package/src/specs/NativeComponentGoogleMapView.ts +1 -12
  47. package/src/specs/NativeComponentGooglePolygon.ts +1 -1
  48. package/src/specs/NativeComponentMapView.ts +20 -2
  49. package/src/specs/NativeComponentMarker.ts +1 -2
  50. package/src/specs/NativeComponentOverlay.ts +1 -1
  51. package/src/specs/NativeComponentPolyline.ts +1 -1
  52. package/src/specs/NativeComponentUrlTile.ts +1 -1
  53. 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;
@@ -386,7 +570,6 @@ class RNMapsGoogleMapViewProps final : public ViewProps {
386
570
  bool showsIndoorLevelPicker{false};
387
571
  bool showsIndoors{true};
388
572
  bool showsMyLocationButton{false};
389
- bool showsPointsOfInterest{false};
390
573
  bool showsScale{false};
391
574
  bool showsTraffic{false};
392
575
  bool showsUserLocation{false};
@@ -399,11 +582,28 @@ class RNMapsGoogleMapViewProps final : public ViewProps {
399
582
  bool zoomControlEnabled{false};
400
583
  bool zoomEnabled{true};
401
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
402
591
  };
403
592
 
404
593
  struct RNMapsGooglePolygonCoordinatesStruct {
405
594
  double latitude{0.0};
406
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
407
607
  };
408
608
 
409
609
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGooglePolygonCoordinatesStruct &result) {
@@ -423,6 +623,12 @@ static inline std::string toString(const RNMapsGooglePolygonCoordinatesStruct &v
423
623
  return "[Object RNMapsGooglePolygonCoordinatesStruct]";
424
624
  }
425
625
 
626
+ #ifdef RN_SERIALIZABLE_STATE
627
+ static inline folly::dynamic toDynamic(const RNMapsGooglePolygonCoordinatesStruct &value) {
628
+ return value.toDynamic();
629
+ }
630
+ #endif
631
+
426
632
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<RNMapsGooglePolygonCoordinatesStruct> &result) {
427
633
  auto items = (std::vector<RawValue>)value;
428
634
  for (const auto &item : items) {
@@ -436,6 +642,17 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
436
642
  struct RNMapsGooglePolygonHolesStruct {
437
643
  double latitude{0.0};
438
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
439
656
  };
440
657
 
441
658
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsGooglePolygonHolesStruct &result) {
@@ -455,6 +672,12 @@ static inline std::string toString(const RNMapsGooglePolygonHolesStruct &value)
455
672
  return "[Object RNMapsGooglePolygonHolesStruct]";
456
673
  }
457
674
 
675
+ #ifdef RN_SERIALIZABLE_STATE
676
+ static inline folly::dynamic toDynamic(const RNMapsGooglePolygonHolesStruct &value) {
677
+ return value.toDynamic();
678
+ }
679
+ #endif
680
+
458
681
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<std::vector<RNMapsGooglePolygonHolesStruct>> &result) {
459
682
  auto items = (std::vector<std::vector<RawValue>>)value;
460
683
  for (const std::vector<RawValue> &item : items) {
@@ -482,6 +705,12 @@ class RNMapsGooglePolygonProps final : public ViewProps {
482
705
  bool geodesic{false};
483
706
  std::vector<std::vector<RNMapsGooglePolygonHolesStruct>> holes{};
484
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
485
714
  };
486
715
 
487
716
  enum class RNMapsMapViewGoogleRenderer { LATEST, LEGACY };
@@ -499,6 +728,12 @@ static inline std::string toString(const RNMapsMapViewGoogleRenderer &value) {
499
728
  case RNMapsMapViewGoogleRenderer::LEGACY: return "LEGACY";
500
729
  }
501
730
  }
731
+
732
+ #ifdef RN_SERIALIZABLE_STATE
733
+ static inline folly::dynamic toDynamic(const RNMapsMapViewGoogleRenderer &value) {
734
+ return toString(value);
735
+ }
736
+ #endif
502
737
  enum class RNMapsMapViewMapType { Hybrid, MutedStandard, None, Satellite, Standard, Terrain, SatelliteFlyover, HybridFlyover };
503
738
 
504
739
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewMapType &result) {
@@ -526,6 +761,12 @@ static inline std::string toString(const RNMapsMapViewMapType &value) {
526
761
  case RNMapsMapViewMapType::HybridFlyover: return "hybridFlyover";
527
762
  }
528
763
  }
764
+
765
+ #ifdef RN_SERIALIZABLE_STATE
766
+ static inline folly::dynamic toDynamic(const RNMapsMapViewMapType &value) {
767
+ return toString(value);
768
+ }
769
+ #endif
529
770
  enum class RNMapsMapViewPaddingAdjustmentBehavior { Always, Automatic, Never };
530
771
 
531
772
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewPaddingAdjustmentBehavior &result) {
@@ -543,6 +784,12 @@ static inline std::string toString(const RNMapsMapViewPaddingAdjustmentBehavior
543
784
  case RNMapsMapViewPaddingAdjustmentBehavior::Never: return "never";
544
785
  }
545
786
  }
787
+
788
+ #ifdef RN_SERIALIZABLE_STATE
789
+ static inline folly::dynamic toDynamic(const RNMapsMapViewPaddingAdjustmentBehavior &value) {
790
+ return toString(value);
791
+ }
792
+ #endif
546
793
  enum class RNMapsMapViewUserInterfaceStyle { System, Light, Dark };
547
794
 
548
795
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewUserInterfaceStyle &result) {
@@ -560,6 +807,12 @@ static inline std::string toString(const RNMapsMapViewUserInterfaceStyle &value)
560
807
  case RNMapsMapViewUserInterfaceStyle::Dark: return "dark";
561
808
  }
562
809
  }
810
+
811
+ #ifdef RN_SERIALIZABLE_STATE
812
+ static inline folly::dynamic toDynamic(const RNMapsMapViewUserInterfaceStyle &value) {
813
+ return toString(value);
814
+ }
815
+ #endif
563
816
  enum class RNMapsMapViewUserLocationPriority { Balanced, High, Low, Passive };
564
817
 
565
818
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewUserLocationPriority &result) {
@@ -579,9 +832,26 @@ static inline std::string toString(const RNMapsMapViewUserLocationPriority &valu
579
832
  case RNMapsMapViewUserLocationPriority::Passive: return "passive";
580
833
  }
581
834
  }
835
+
836
+ #ifdef RN_SERIALIZABLE_STATE
837
+ static inline folly::dynamic toDynamic(const RNMapsMapViewUserLocationPriority &value) {
838
+ return toString(value);
839
+ }
840
+ #endif
582
841
  struct RNMapsMapViewCameraCenterStruct {
583
842
  double latitude{0.0};
584
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
585
855
  };
586
856
 
587
857
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraCenterStruct &result) {
@@ -601,12 +871,32 @@ static inline std::string toString(const RNMapsMapViewCameraCenterStruct &value)
601
871
  return "[Object RNMapsMapViewCameraCenterStruct]";
602
872
  }
603
873
 
874
+ #ifdef RN_SERIALIZABLE_STATE
875
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraCenterStruct &value) {
876
+ return value.toDynamic();
877
+ }
878
+ #endif
879
+
604
880
  struct RNMapsMapViewCameraStruct {
605
881
  double altitude{0.0};
606
882
  RNMapsMapViewCameraCenterStruct center{};
607
883
  double heading{0.0};
608
884
  double pitch{0.0};
609
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
610
900
  };
611
901
 
612
902
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraStruct &result) {
@@ -638,9 +928,26 @@ static inline std::string toString(const RNMapsMapViewCameraStruct &value) {
638
928
  return "[Object RNMapsMapViewCameraStruct]";
639
929
  }
640
930
 
931
+ #ifdef RN_SERIALIZABLE_STATE
932
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraStruct &value) {
933
+ return value.toDynamic();
934
+ }
935
+ #endif
936
+
641
937
  struct RNMapsMapViewCompassOffsetStruct {
642
938
  double x{0.0};
643
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
644
951
  };
645
952
 
646
953
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCompassOffsetStruct &result) {
@@ -660,9 +967,26 @@ static inline std::string toString(const RNMapsMapViewCompassOffsetStruct &value
660
967
  return "[Object RNMapsMapViewCompassOffsetStruct]";
661
968
  }
662
969
 
970
+ #ifdef RN_SERIALIZABLE_STATE
971
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCompassOffsetStruct &value) {
972
+ return value.toDynamic();
973
+ }
974
+ #endif
975
+
663
976
  struct RNMapsMapViewInitialCameraCenterStruct {
664
977
  double latitude{0.0};
665
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
666
990
  };
667
991
 
668
992
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialCameraCenterStruct &result) {
@@ -682,12 +1006,32 @@ static inline std::string toString(const RNMapsMapViewInitialCameraCenterStruct
682
1006
  return "[Object RNMapsMapViewInitialCameraCenterStruct]";
683
1007
  }
684
1008
 
1009
+ #ifdef RN_SERIALIZABLE_STATE
1010
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialCameraCenterStruct &value) {
1011
+ return value.toDynamic();
1012
+ }
1013
+ #endif
1014
+
685
1015
  struct RNMapsMapViewInitialCameraStruct {
686
1016
  double altitude{0.0};
687
1017
  RNMapsMapViewInitialCameraCenterStruct center{};
688
1018
  double heading{0.0};
689
1019
  double pitch{0.0};
690
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
691
1035
  };
692
1036
 
693
1037
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialCameraStruct &result) {
@@ -719,11 +1063,30 @@ static inline std::string toString(const RNMapsMapViewInitialCameraStruct &value
719
1063
  return "[Object RNMapsMapViewInitialCameraStruct]";
720
1064
  }
721
1065
 
1066
+ #ifdef RN_SERIALIZABLE_STATE
1067
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialCameraStruct &value) {
1068
+ return value.toDynamic();
1069
+ }
1070
+ #endif
1071
+
722
1072
  struct RNMapsMapViewInitialRegionStruct {
723
1073
  double latitude{0.0};
724
1074
  double longitude{0.0};
725
1075
  double latitudeDelta{0.0};
726
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
727
1090
  };
728
1091
 
729
1092
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewInitialRegionStruct &result) {
@@ -751,11 +1114,30 @@ static inline std::string toString(const RNMapsMapViewInitialRegionStruct &value
751
1114
  return "[Object RNMapsMapViewInitialRegionStruct]";
752
1115
  }
753
1116
 
1117
+ #ifdef RN_SERIALIZABLE_STATE
1118
+ static inline folly::dynamic toDynamic(const RNMapsMapViewInitialRegionStruct &value) {
1119
+ return value.toDynamic();
1120
+ }
1121
+ #endif
1122
+
754
1123
  struct RNMapsMapViewLegalLabelInsetsStruct {
755
1124
  double top{0.0};
756
1125
  double right{0.0};
757
1126
  double bottom{0.0};
758
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
759
1141
  };
760
1142
 
761
1143
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewLegalLabelInsetsStruct &result) {
@@ -783,11 +1165,30 @@ static inline std::string toString(const RNMapsMapViewLegalLabelInsetsStruct &va
783
1165
  return "[Object RNMapsMapViewLegalLabelInsetsStruct]";
784
1166
  }
785
1167
 
1168
+ #ifdef RN_SERIALIZABLE_STATE
1169
+ static inline folly::dynamic toDynamic(const RNMapsMapViewLegalLabelInsetsStruct &value) {
1170
+ return value.toDynamic();
1171
+ }
1172
+ #endif
1173
+
786
1174
  struct RNMapsMapViewMapPaddingStruct {
787
1175
  double top{0.0};
788
1176
  double right{0.0};
789
1177
  double bottom{0.0};
790
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
791
1192
  };
792
1193
 
793
1194
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewMapPaddingStruct &result) {
@@ -815,11 +1216,30 @@ static inline std::string toString(const RNMapsMapViewMapPaddingStruct &value) {
815
1216
  return "[Object RNMapsMapViewMapPaddingStruct]";
816
1217
  }
817
1218
 
1219
+ #ifdef RN_SERIALIZABLE_STATE
1220
+ static inline folly::dynamic toDynamic(const RNMapsMapViewMapPaddingStruct &value) {
1221
+ return value.toDynamic();
1222
+ }
1223
+ #endif
1224
+
818
1225
  struct RNMapsMapViewRegionStruct {
819
1226
  double latitude{0.0};
820
1227
  double longitude{0.0};
821
1228
  double latitudeDelta{0.0};
822
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
823
1243
  };
824
1244
 
825
1245
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewRegionStruct &result) {
@@ -847,10 +1267,28 @@ static inline std::string toString(const RNMapsMapViewRegionStruct &value) {
847
1267
  return "[Object RNMapsMapViewRegionStruct]";
848
1268
  }
849
1269
 
1270
+ #ifdef RN_SERIALIZABLE_STATE
1271
+ static inline folly::dynamic toDynamic(const RNMapsMapViewRegionStruct &value) {
1272
+ return value.toDynamic();
1273
+ }
1274
+ #endif
1275
+
850
1276
  struct RNMapsMapViewCameraZoomRangeStruct {
851
1277
  double minCenterCoordinateDistance{0.0};
852
1278
  double maxCenterCoordinateDistance{0.0};
853
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
854
1292
  };
855
1293
 
856
1294
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMapViewCameraZoomRangeStruct &result) {
@@ -873,6 +1311,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
873
1311
  static inline std::string toString(const RNMapsMapViewCameraZoomRangeStruct &value) {
874
1312
  return "[Object RNMapsMapViewCameraZoomRangeStruct]";
875
1313
  }
1314
+
1315
+ #ifdef RN_SERIALIZABLE_STATE
1316
+ static inline folly::dynamic toDynamic(const RNMapsMapViewCameraZoomRangeStruct &value) {
1317
+ return value.toDynamic();
1318
+ }
1319
+ #endif
876
1320
  class RNMapsMapViewProps final : public ViewProps {
877
1321
  public:
878
1322
  RNMapsMapViewProps() = default;
@@ -913,7 +1357,9 @@ class RNMapsMapViewProps final : public ViewProps {
913
1357
  bool showsCompass{true};
914
1358
  bool showsIndoorLevelPicker{false};
915
1359
  bool showsIndoors{true};
916
- bool showsMyLocationButton{true};
1360
+ bool showsPointsOfInterests{true};
1361
+ std::vector<std::string> pointsOfInterestFilter{};
1362
+ bool showsMyLocationButton{false};
917
1363
  bool showsScale{false};
918
1364
  bool showsUserLocation{false};
919
1365
  SharedColor tintColor{};
@@ -930,6 +1376,12 @@ class RNMapsMapViewProps final : public ViewProps {
930
1376
  bool showsTraffic{false};
931
1377
  bool zoomTapEnabled{true};
932
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
933
1385
  };
934
1386
 
935
1387
  enum class RNMapsMarkerDisplayPriority { Required, High, Low };
@@ -949,6 +1401,12 @@ static inline std::string toString(const RNMapsMarkerDisplayPriority &value) {
949
1401
  case RNMapsMarkerDisplayPriority::Low: return "low";
950
1402
  }
951
1403
  }
1404
+
1405
+ #ifdef RN_SERIALIZABLE_STATE
1406
+ static inline folly::dynamic toDynamic(const RNMapsMarkerDisplayPriority &value) {
1407
+ return toString(value);
1408
+ }
1409
+ #endif
952
1410
  enum class RNMapsMarkerTitleVisibility { Hidden, Adaptive, Visible };
953
1411
 
954
1412
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerTitleVisibility &result) {
@@ -966,6 +1424,12 @@ static inline std::string toString(const RNMapsMarkerTitleVisibility &value) {
966
1424
  case RNMapsMarkerTitleVisibility::Visible: return "visible";
967
1425
  }
968
1426
  }
1427
+
1428
+ #ifdef RN_SERIALIZABLE_STATE
1429
+ static inline folly::dynamic toDynamic(const RNMapsMarkerTitleVisibility &value) {
1430
+ return toString(value);
1431
+ }
1432
+ #endif
969
1433
  enum class RNMapsMarkerSubtitleVisibility { Hidden, Adaptive, Visible };
970
1434
 
971
1435
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerSubtitleVisibility &result) {
@@ -983,9 +1447,26 @@ static inline std::string toString(const RNMapsMarkerSubtitleVisibility &value)
983
1447
  case RNMapsMarkerSubtitleVisibility::Visible: return "visible";
984
1448
  }
985
1449
  }
1450
+
1451
+ #ifdef RN_SERIALIZABLE_STATE
1452
+ static inline folly::dynamic toDynamic(const RNMapsMarkerSubtitleVisibility &value) {
1453
+ return toString(value);
1454
+ }
1455
+ #endif
986
1456
  struct RNMapsMarkerAnchorStruct {
987
1457
  double x{0.0};
988
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
989
1470
  };
990
1471
 
991
1472
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerAnchorStruct &result) {
@@ -1005,9 +1486,26 @@ static inline std::string toString(const RNMapsMarkerAnchorStruct &value) {
1005
1486
  return "[Object RNMapsMarkerAnchorStruct]";
1006
1487
  }
1007
1488
 
1489
+ #ifdef RN_SERIALIZABLE_STATE
1490
+ static inline folly::dynamic toDynamic(const RNMapsMarkerAnchorStruct &value) {
1491
+ return value.toDynamic();
1492
+ }
1493
+ #endif
1494
+
1008
1495
  struct RNMapsMarkerCalloutAnchorStruct {
1009
1496
  double x{0.0};
1010
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
1011
1509
  };
1012
1510
 
1013
1511
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCalloutAnchorStruct &result) {
@@ -1027,9 +1525,26 @@ static inline std::string toString(const RNMapsMarkerCalloutAnchorStruct &value)
1027
1525
  return "[Object RNMapsMarkerCalloutAnchorStruct]";
1028
1526
  }
1029
1527
 
1528
+ #ifdef RN_SERIALIZABLE_STATE
1529
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCalloutAnchorStruct &value) {
1530
+ return value.toDynamic();
1531
+ }
1532
+ #endif
1533
+
1030
1534
  struct RNMapsMarkerCalloutOffsetStruct {
1031
1535
  double x{0.0};
1032
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
1033
1548
  };
1034
1549
 
1035
1550
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCalloutOffsetStruct &result) {
@@ -1049,9 +1564,26 @@ static inline std::string toString(const RNMapsMarkerCalloutOffsetStruct &value)
1049
1564
  return "[Object RNMapsMarkerCalloutOffsetStruct]";
1050
1565
  }
1051
1566
 
1567
+ #ifdef RN_SERIALIZABLE_STATE
1568
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCalloutOffsetStruct &value) {
1569
+ return value.toDynamic();
1570
+ }
1571
+ #endif
1572
+
1052
1573
  struct RNMapsMarkerCenterOffsetStruct {
1053
1574
  double x{0.0};
1054
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
1055
1587
  };
1056
1588
 
1057
1589
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCenterOffsetStruct &result) {
@@ -1071,9 +1603,26 @@ static inline std::string toString(const RNMapsMarkerCenterOffsetStruct &value)
1071
1603
  return "[Object RNMapsMarkerCenterOffsetStruct]";
1072
1604
  }
1073
1605
 
1606
+ #ifdef RN_SERIALIZABLE_STATE
1607
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCenterOffsetStruct &value) {
1608
+ return value.toDynamic();
1609
+ }
1610
+ #endif
1611
+
1074
1612
  struct RNMapsMarkerCoordinateStruct {
1075
1613
  double latitude{0.0};
1076
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
1077
1626
  };
1078
1627
 
1079
1628
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsMarkerCoordinateStruct &result) {
@@ -1092,6 +1641,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1092
1641
  static inline std::string toString(const RNMapsMarkerCoordinateStruct &value) {
1093
1642
  return "[Object RNMapsMarkerCoordinateStruct]";
1094
1643
  }
1644
+
1645
+ #ifdef RN_SERIALIZABLE_STATE
1646
+ static inline folly::dynamic toDynamic(const RNMapsMarkerCoordinateStruct &value) {
1647
+ return value.toDynamic();
1648
+ }
1649
+ #endif
1095
1650
  class RNMapsMarkerProps final : public ViewProps {
1096
1651
  public:
1097
1652
  RNMapsMarkerProps() = default;
@@ -1117,11 +1672,28 @@ class RNMapsMarkerProps final : public ViewProps {
1117
1672
  RNMapsMarkerTitleVisibility titleVisibility{RNMapsMarkerTitleVisibility::Visible};
1118
1673
  RNMapsMarkerSubtitleVisibility subtitleVisibility{RNMapsMarkerSubtitleVisibility::Adaptive};
1119
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
1120
1681
  };
1121
1682
 
1122
1683
  struct RNMapsOverlayBoundsNorthEastStruct {
1123
1684
  double latitude{0.0};
1124
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
1125
1697
  };
1126
1698
 
1127
1699
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsNorthEastStruct &result) {
@@ -1141,9 +1713,26 @@ static inline std::string toString(const RNMapsOverlayBoundsNorthEastStruct &val
1141
1713
  return "[Object RNMapsOverlayBoundsNorthEastStruct]";
1142
1714
  }
1143
1715
 
1716
+ #ifdef RN_SERIALIZABLE_STATE
1717
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsNorthEastStruct &value) {
1718
+ return value.toDynamic();
1719
+ }
1720
+ #endif
1721
+
1144
1722
  struct RNMapsOverlayBoundsSouthWestStruct {
1145
1723
  double latitude{0.0};
1146
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
1147
1736
  };
1148
1737
 
1149
1738
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsSouthWestStruct &result) {
@@ -1163,9 +1752,26 @@ static inline std::string toString(const RNMapsOverlayBoundsSouthWestStruct &val
1163
1752
  return "[Object RNMapsOverlayBoundsSouthWestStruct]";
1164
1753
  }
1165
1754
 
1755
+ #ifdef RN_SERIALIZABLE_STATE
1756
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsSouthWestStruct &value) {
1757
+ return value.toDynamic();
1758
+ }
1759
+ #endif
1760
+
1166
1761
  struct RNMapsOverlayBoundsStruct {
1167
1762
  RNMapsOverlayBoundsNorthEastStruct northEast{};
1168
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
1169
1775
  };
1170
1776
 
1171
1777
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsOverlayBoundsStruct &result) {
@@ -1184,6 +1790,12 @@ static inline void fromRawValue(const PropsParserContext& context, const RawValu
1184
1790
  static inline std::string toString(const RNMapsOverlayBoundsStruct &value) {
1185
1791
  return "[Object RNMapsOverlayBoundsStruct]";
1186
1792
  }
1793
+
1794
+ #ifdef RN_SERIALIZABLE_STATE
1795
+ static inline folly::dynamic toDynamic(const RNMapsOverlayBoundsStruct &value) {
1796
+ return value.toDynamic();
1797
+ }
1798
+ #endif
1187
1799
  class RNMapsOverlayProps final : public ViewProps {
1188
1800
  public:
1189
1801
  RNMapsOverlayProps() = default;
@@ -1196,6 +1808,12 @@ class RNMapsOverlayProps final : public ViewProps {
1196
1808
  ImageSource image{};
1197
1809
  Float opacity{1.0};
1198
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
1199
1817
  };
1200
1818
 
1201
1819
  enum class RNMapsPolylineLineCap { Butt, Round, Square };
@@ -1215,6 +1833,12 @@ static inline std::string toString(const RNMapsPolylineLineCap &value) {
1215
1833
  case RNMapsPolylineLineCap::Square: return "square";
1216
1834
  }
1217
1835
  }
1836
+
1837
+ #ifdef RN_SERIALIZABLE_STATE
1838
+ static inline folly::dynamic toDynamic(const RNMapsPolylineLineCap &value) {
1839
+ return toString(value);
1840
+ }
1841
+ #endif
1218
1842
  enum class RNMapsPolylineLineJoin { Miter, Round, Bevel };
1219
1843
 
1220
1844
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsPolylineLineJoin &result) {
@@ -1232,9 +1856,26 @@ static inline std::string toString(const RNMapsPolylineLineJoin &value) {
1232
1856
  case RNMapsPolylineLineJoin::Bevel: return "bevel";
1233
1857
  }
1234
1858
  }
1859
+
1860
+ #ifdef RN_SERIALIZABLE_STATE
1861
+ static inline folly::dynamic toDynamic(const RNMapsPolylineLineJoin &value) {
1862
+ return toString(value);
1863
+ }
1864
+ #endif
1235
1865
  struct RNMapsPolylineCoordinatesStruct {
1236
1866
  double latitude{0.0};
1237
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
1238
1879
  };
1239
1880
 
1240
1881
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, RNMapsPolylineCoordinatesStruct &result) {
@@ -1254,6 +1895,12 @@ static inline std::string toString(const RNMapsPolylineCoordinatesStruct &value)
1254
1895
  return "[Object RNMapsPolylineCoordinatesStruct]";
1255
1896
  }
1256
1897
 
1898
+ #ifdef RN_SERIALIZABLE_STATE
1899
+ static inline folly::dynamic toDynamic(const RNMapsPolylineCoordinatesStruct &value) {
1900
+ return value.toDynamic();
1901
+ }
1902
+ #endif
1903
+
1257
1904
  static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<RNMapsPolylineCoordinatesStruct> &result) {
1258
1905
  auto items = (std::vector<RawValue>)value;
1259
1906
  for (const auto &item : items) {
@@ -1279,6 +1926,12 @@ class RNMapsPolylineProps final : public ViewProps {
1279
1926
  std::vector<SharedColor> strokeColors{};
1280
1927
  Float strokeWidth{1.0};
1281
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
1282
1935
  };
1283
1936
 
1284
1937
  class RNMapsUrlTileProps final : public ViewProps {
@@ -1299,6 +1952,12 @@ class RNMapsUrlTileProps final : public ViewProps {
1299
1952
  std::string tileCachePath{};
1300
1953
  int tileSize{256};
1301
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
1302
1961
  };
1303
1962
 
1304
1963
  class RNMapsWMSTileProps final : public ViewProps {
@@ -1317,6 +1976,12 @@ class RNMapsWMSTileProps final : public ViewProps {
1317
1976
  std::string tileCachePath{};
1318
1977
  int tileSize{256};
1319
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
1320
1985
  };
1321
1986
 
1322
1987
  } // namespace facebook::react