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
@@ -21,8 +21,34 @@ RNMapsCalloutProps::RNMapsCalloutProps(
21
21
  const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
22
22
 
23
23
  alphaHitTest(convertRawProp(context, rawProps, "alphaHitTest", sourceProps.alphaHitTest, {false})),
24
- tooltip(convertRawProp(context, rawProps, "tooltip", sourceProps.tooltip, {false}))
25
- {}
24
+ tooltip(convertRawProp(context, rawProps, "tooltip", sourceProps.tooltip, {false})) {}
25
+
26
+ #ifdef RN_SERIALIZABLE_STATE
27
+ ComponentName RNMapsCalloutProps::getDiffPropsImplementationTarget() const {
28
+ return "RNMapsCallout";
29
+ }
30
+
31
+ folly::dynamic RNMapsCalloutProps::getDiffProps(
32
+ const Props* prevProps) const {
33
+ static const auto defaultProps = RNMapsCalloutProps();
34
+ const RNMapsCalloutProps* oldProps = prevProps == nullptr
35
+ ? &defaultProps
36
+ : static_cast<const RNMapsCalloutProps*>(prevProps);
37
+ if (this == oldProps) {
38
+ return folly::dynamic::object();
39
+ }
40
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
41
+
42
+ if (alphaHitTest != oldProps->alphaHitTest) {
43
+ result["alphaHitTest"] = alphaHitTest;
44
+ }
45
+
46
+ if (tooltip != oldProps->tooltip) {
47
+ result["tooltip"] = tooltip;
48
+ }
49
+ return result;
50
+ }
51
+ #endif
26
52
  RNMapsCircleProps::RNMapsCircleProps(
27
53
  const PropsParserContext &context,
28
54
  const RNMapsCircleProps &sourceProps,
@@ -33,8 +59,50 @@ RNMapsCircleProps::RNMapsCircleProps(
33
59
  radius(convertRawProp(context, rawProps, "radius", sourceProps.radius, {0.0})),
34
60
  strokeColor(convertRawProp(context, rawProps, "strokeColor", sourceProps.strokeColor, {})),
35
61
  strokeWidth(convertRawProp(context, rawProps, "strokeWidth", sourceProps.strokeWidth, {1.0})),
36
- tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
37
- {}
62
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false})) {}
63
+
64
+ #ifdef RN_SERIALIZABLE_STATE
65
+ ComponentName RNMapsCircleProps::getDiffPropsImplementationTarget() const {
66
+ return "RNMapsCircle";
67
+ }
68
+
69
+ folly::dynamic RNMapsCircleProps::getDiffProps(
70
+ const Props* prevProps) const {
71
+ static const auto defaultProps = RNMapsCircleProps();
72
+ const RNMapsCircleProps* oldProps = prevProps == nullptr
73
+ ? &defaultProps
74
+ : static_cast<const RNMapsCircleProps*>(prevProps);
75
+ if (this == oldProps) {
76
+ return folly::dynamic::object();
77
+ }
78
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
79
+
80
+ if (center != oldProps->center) {
81
+ result["center"] = toDynamic(center);
82
+ }
83
+
84
+ if (fillColor != oldProps->fillColor) {
85
+ result["fillColor"] = *fillColor;
86
+ }
87
+
88
+ if ((radius != oldProps->radius) && !(std::isnan(radius) && std::isnan(oldProps->radius))) {
89
+ result["radius"] = radius;
90
+ }
91
+
92
+ if (strokeColor != oldProps->strokeColor) {
93
+ result["strokeColor"] = *strokeColor;
94
+ }
95
+
96
+ if ((strokeWidth != oldProps->strokeWidth) && !(std::isnan(strokeWidth) && std::isnan(oldProps->strokeWidth))) {
97
+ result["strokeWidth"] = strokeWidth;
98
+ }
99
+
100
+ if (tappable != oldProps->tappable) {
101
+ result["tappable"] = tappable;
102
+ }
103
+ return result;
104
+ }
105
+ #endif
38
106
  RNMapsGoogleMapViewProps::RNMapsGoogleMapViewProps(
39
107
  const PropsParserContext &context,
40
108
  const RNMapsGoogleMapViewProps &sourceProps,
@@ -72,8 +140,158 @@ RNMapsGoogleMapViewProps::RNMapsGoogleMapViewProps(
72
140
  userLocationUpdateInterval(convertRawProp(context, rawProps, "userLocationUpdateInterval", sourceProps.userLocationUpdateInterval, {0})),
73
141
  zoomControlEnabled(convertRawProp(context, rawProps, "zoomControlEnabled", sourceProps.zoomControlEnabled, {false})),
74
142
  zoomEnabled(convertRawProp(context, rawProps, "zoomEnabled", sourceProps.zoomEnabled, {true})),
75
- zoomTapEnabled(convertRawProp(context, rawProps, "zoomTapEnabled", sourceProps.zoomTapEnabled, {true}))
76
- {}
143
+ zoomTapEnabled(convertRawProp(context, rawProps, "zoomTapEnabled", sourceProps.zoomTapEnabled, {true})) {}
144
+
145
+ #ifdef RN_SERIALIZABLE_STATE
146
+ ComponentName RNMapsGoogleMapViewProps::getDiffPropsImplementationTarget() const {
147
+ return "RNMapsGoogleMapView";
148
+ }
149
+
150
+ folly::dynamic RNMapsGoogleMapViewProps::getDiffProps(
151
+ const Props* prevProps) const {
152
+ static const auto defaultProps = RNMapsGoogleMapViewProps();
153
+ const RNMapsGoogleMapViewProps* oldProps = prevProps == nullptr
154
+ ? &defaultProps
155
+ : static_cast<const RNMapsGoogleMapViewProps*>(prevProps);
156
+ if (this == oldProps) {
157
+ return folly::dynamic::object();
158
+ }
159
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
160
+
161
+ if (camera != oldProps->camera) {
162
+ result["camera"] = toDynamic(camera);
163
+ }
164
+
165
+ if (initialCamera != oldProps->initialCamera) {
166
+ result["initialCamera"] = toDynamic(initialCamera);
167
+ }
168
+
169
+ if (initialRegion != oldProps->initialRegion) {
170
+ result["initialRegion"] = toDynamic(initialRegion);
171
+ }
172
+
173
+ if (kmlSrc != oldProps->kmlSrc) {
174
+ result["kmlSrc"] = kmlSrc;
175
+ }
176
+
177
+ if (googleMapId != oldProps->googleMapId) {
178
+ result["googleMapId"] = googleMapId;
179
+ }
180
+
181
+ if (loadingBackgroundColor != oldProps->loadingBackgroundColor) {
182
+ result["loadingBackgroundColor"] = *loadingBackgroundColor;
183
+ }
184
+
185
+ if (mapPadding != oldProps->mapPadding) {
186
+ result["mapPadding"] = toDynamic(mapPadding);
187
+ }
188
+
189
+ if (mapType != oldProps->mapType) {
190
+ result["mapType"] = toDynamic(mapType);
191
+ }
192
+
193
+ if ((maxZoom != oldProps->maxZoom) && !(std::isnan(maxZoom) && std::isnan(oldProps->maxZoom))) {
194
+ result["maxZoom"] = maxZoom;
195
+ }
196
+
197
+ if ((minZoom != oldProps->minZoom) && !(std::isnan(minZoom) && std::isnan(oldProps->minZoom))) {
198
+ result["minZoom"] = minZoom;
199
+ }
200
+
201
+ if (paddingAdjustmentBehavior != oldProps->paddingAdjustmentBehavior) {
202
+ result["paddingAdjustmentBehavior"] = toDynamic(paddingAdjustmentBehavior);
203
+ }
204
+
205
+ if (pitchEnabled != oldProps->pitchEnabled) {
206
+ result["pitchEnabled"] = pitchEnabled;
207
+ }
208
+
209
+ if (region != oldProps->region) {
210
+ result["region"] = toDynamic(region);
211
+ }
212
+
213
+ if (rotateEnabled != oldProps->rotateEnabled) {
214
+ result["rotateEnabled"] = rotateEnabled;
215
+ }
216
+
217
+ if (scrollDuringRotateOrZoomEnabled != oldProps->scrollDuringRotateOrZoomEnabled) {
218
+ result["scrollDuringRotateOrZoomEnabled"] = scrollDuringRotateOrZoomEnabled;
219
+ }
220
+
221
+ if (scrollEnabled != oldProps->scrollEnabled) {
222
+ result["scrollEnabled"] = scrollEnabled;
223
+ }
224
+
225
+ if (showsBuildings != oldProps->showsBuildings) {
226
+ result["showsBuildings"] = showsBuildings;
227
+ }
228
+
229
+ if (showsCompass != oldProps->showsCompass) {
230
+ result["showsCompass"] = showsCompass;
231
+ }
232
+
233
+ if (showsIndoorLevelPicker != oldProps->showsIndoorLevelPicker) {
234
+ result["showsIndoorLevelPicker"] = showsIndoorLevelPicker;
235
+ }
236
+
237
+ if (showsIndoors != oldProps->showsIndoors) {
238
+ result["showsIndoors"] = showsIndoors;
239
+ }
240
+
241
+ if (showsMyLocationButton != oldProps->showsMyLocationButton) {
242
+ result["showsMyLocationButton"] = showsMyLocationButton;
243
+ }
244
+
245
+ if (showsScale != oldProps->showsScale) {
246
+ result["showsScale"] = showsScale;
247
+ }
248
+
249
+ if (showsTraffic != oldProps->showsTraffic) {
250
+ result["showsTraffic"] = showsTraffic;
251
+ }
252
+
253
+ if (showsUserLocation != oldProps->showsUserLocation) {
254
+ result["showsUserLocation"] = showsUserLocation;
255
+ }
256
+
257
+ if (userInterfaceStyle != oldProps->userInterfaceStyle) {
258
+ result["userInterfaceStyle"] = toDynamic(userInterfaceStyle);
259
+ }
260
+
261
+ if (customMapStyleString != oldProps->customMapStyleString) {
262
+ result["customMapStyleString"] = customMapStyleString;
263
+ }
264
+
265
+ if (userLocationCalloutEnabled != oldProps->userLocationCalloutEnabled) {
266
+ result["userLocationCalloutEnabled"] = userLocationCalloutEnabled;
267
+ }
268
+
269
+ if (userLocationFastestInterval != oldProps->userLocationFastestInterval) {
270
+ result["userLocationFastestInterval"] = userLocationFastestInterval;
271
+ }
272
+
273
+ if (userLocationPriority != oldProps->userLocationPriority) {
274
+ result["userLocationPriority"] = toDynamic(userLocationPriority);
275
+ }
276
+
277
+ if (userLocationUpdateInterval != oldProps->userLocationUpdateInterval) {
278
+ result["userLocationUpdateInterval"] = userLocationUpdateInterval;
279
+ }
280
+
281
+ if (zoomControlEnabled != oldProps->zoomControlEnabled) {
282
+ result["zoomControlEnabled"] = zoomControlEnabled;
283
+ }
284
+
285
+ if (zoomEnabled != oldProps->zoomEnabled) {
286
+ result["zoomEnabled"] = zoomEnabled;
287
+ }
288
+
289
+ if (zoomTapEnabled != oldProps->zoomTapEnabled) {
290
+ result["zoomTapEnabled"] = zoomTapEnabled;
291
+ }
292
+ return result;
293
+ }
294
+ #endif
77
295
  RNMapsGooglePolygonProps::RNMapsGooglePolygonProps(
78
296
  const PropsParserContext &context,
79
297
  const RNMapsGooglePolygonProps &sourceProps,
@@ -85,8 +303,54 @@ RNMapsGooglePolygonProps::RNMapsGooglePolygonProps(
85
303
  strokeWidth(convertRawProp(context, rawProps, "strokeWidth", sourceProps.strokeWidth, {1.0})),
86
304
  geodesic(convertRawProp(context, rawProps, "geodesic", sourceProps.geodesic, {false})),
87
305
  holes(convertRawProp(context, rawProps, "holes", sourceProps.holes, {})),
88
- tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
89
- {}
306
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false})) {}
307
+
308
+ #ifdef RN_SERIALIZABLE_STATE
309
+ ComponentName RNMapsGooglePolygonProps::getDiffPropsImplementationTarget() const {
310
+ return "RNMapsGooglePolygon";
311
+ }
312
+
313
+ folly::dynamic RNMapsGooglePolygonProps::getDiffProps(
314
+ const Props* prevProps) const {
315
+ static const auto defaultProps = RNMapsGooglePolygonProps();
316
+ const RNMapsGooglePolygonProps* oldProps = prevProps == nullptr
317
+ ? &defaultProps
318
+ : static_cast<const RNMapsGooglePolygonProps*>(prevProps);
319
+ if (this == oldProps) {
320
+ return folly::dynamic::object();
321
+ }
322
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
323
+
324
+ if (coordinates != oldProps->coordinates) {
325
+ result["coordinates"] = toDynamic(coordinates);
326
+ }
327
+
328
+ if (fillColor != oldProps->fillColor) {
329
+ result["fillColor"] = *fillColor;
330
+ }
331
+
332
+ if (strokeColor != oldProps->strokeColor) {
333
+ result["strokeColor"] = *strokeColor;
334
+ }
335
+
336
+ if ((strokeWidth != oldProps->strokeWidth) && !(std::isnan(strokeWidth) && std::isnan(oldProps->strokeWidth))) {
337
+ result["strokeWidth"] = strokeWidth;
338
+ }
339
+
340
+ if (geodesic != oldProps->geodesic) {
341
+ result["geodesic"] = geodesic;
342
+ }
343
+
344
+ if (holes != oldProps->holes) {
345
+ result["holes"] = toDynamic(holes);
346
+ }
347
+
348
+ if (tappable != oldProps->tappable) {
349
+ result["tappable"] = tappable;
350
+ }
351
+ return result;
352
+ }
353
+ #endif
90
354
  RNMapsMapViewProps::RNMapsMapViewProps(
91
355
  const PropsParserContext &context,
92
356
  const RNMapsMapViewProps &sourceProps,
@@ -143,8 +407,234 @@ RNMapsMapViewProps::RNMapsMapViewProps(
143
407
  zoomEnabled(convertRawProp(context, rawProps, "zoomEnabled", sourceProps.zoomEnabled, {true})),
144
408
  showsTraffic(convertRawProp(context, rawProps, "showsTraffic", sourceProps.showsTraffic, {false})),
145
409
  zoomTapEnabled(convertRawProp(context, rawProps, "zoomTapEnabled", sourceProps.zoomTapEnabled, {true})),
146
- cameraZoomRange(convertRawProp(context, rawProps, "cameraZoomRange", sourceProps.cameraZoomRange, {}))
147
- {}
410
+ cameraZoomRange(convertRawProp(context, rawProps, "cameraZoomRange", sourceProps.cameraZoomRange, {})) {}
411
+
412
+ #ifdef RN_SERIALIZABLE_STATE
413
+ ComponentName RNMapsMapViewProps::getDiffPropsImplementationTarget() const {
414
+ return "RNMapsMapView";
415
+ }
416
+
417
+ folly::dynamic RNMapsMapViewProps::getDiffProps(
418
+ const Props* prevProps) const {
419
+ static const auto defaultProps = RNMapsMapViewProps();
420
+ const RNMapsMapViewProps* oldProps = prevProps == nullptr
421
+ ? &defaultProps
422
+ : static_cast<const RNMapsMapViewProps*>(prevProps);
423
+ if (this == oldProps) {
424
+ return folly::dynamic::object();
425
+ }
426
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
427
+
428
+ if (cacheEnabled != oldProps->cacheEnabled) {
429
+ result["cacheEnabled"] = cacheEnabled;
430
+ }
431
+
432
+ if (camera != oldProps->camera) {
433
+ result["camera"] = toDynamic(camera);
434
+ }
435
+
436
+ if (compassOffset != oldProps->compassOffset) {
437
+ result["compassOffset"] = toDynamic(compassOffset);
438
+ }
439
+
440
+ if (followsUserLocation != oldProps->followsUserLocation) {
441
+ result["followsUserLocation"] = followsUserLocation;
442
+ }
443
+
444
+ if (poiClickEnabled != oldProps->poiClickEnabled) {
445
+ result["poiClickEnabled"] = poiClickEnabled;
446
+ }
447
+
448
+ if (initialCamera != oldProps->initialCamera) {
449
+ result["initialCamera"] = toDynamic(initialCamera);
450
+ }
451
+
452
+ if (initialRegion != oldProps->initialRegion) {
453
+ result["initialRegion"] = toDynamic(initialRegion);
454
+ }
455
+
456
+ if (kmlSrc != oldProps->kmlSrc) {
457
+ result["kmlSrc"] = kmlSrc;
458
+ }
459
+
460
+ if (legalLabelInsets != oldProps->legalLabelInsets) {
461
+ result["legalLabelInsets"] = toDynamic(legalLabelInsets);
462
+ }
463
+
464
+ if (liteMode != oldProps->liteMode) {
465
+ result["liteMode"] = liteMode;
466
+ }
467
+
468
+ if (googleMapId != oldProps->googleMapId) {
469
+ result["googleMapId"] = googleMapId;
470
+ }
471
+
472
+ if (googleRenderer != oldProps->googleRenderer) {
473
+ result["googleRenderer"] = toDynamic(googleRenderer);
474
+ }
475
+
476
+ if (loadingBackgroundColor != oldProps->loadingBackgroundColor) {
477
+ result["loadingBackgroundColor"] = *loadingBackgroundColor;
478
+ }
479
+
480
+ if (loadingEnabled != oldProps->loadingEnabled) {
481
+ result["loadingEnabled"] = loadingEnabled;
482
+ }
483
+
484
+ if (loadingIndicatorColor != oldProps->loadingIndicatorColor) {
485
+ result["loadingIndicatorColor"] = *loadingIndicatorColor;
486
+ }
487
+
488
+ if (mapPadding != oldProps->mapPadding) {
489
+ result["mapPadding"] = toDynamic(mapPadding);
490
+ }
491
+
492
+ if (mapType != oldProps->mapType) {
493
+ result["mapType"] = toDynamic(mapType);
494
+ }
495
+
496
+ if ((maxDelta != oldProps->maxDelta) && !(std::isnan(maxDelta) && std::isnan(oldProps->maxDelta))) {
497
+ result["maxDelta"] = maxDelta;
498
+ }
499
+
500
+ if ((maxZoom != oldProps->maxZoom) && !(std::isnan(maxZoom) && std::isnan(oldProps->maxZoom))) {
501
+ result["maxZoom"] = maxZoom;
502
+ }
503
+
504
+ if ((minDelta != oldProps->minDelta) && !(std::isnan(minDelta) && std::isnan(oldProps->minDelta))) {
505
+ result["minDelta"] = minDelta;
506
+ }
507
+
508
+ if ((minZoom != oldProps->minZoom) && !(std::isnan(minZoom) && std::isnan(oldProps->minZoom))) {
509
+ result["minZoom"] = minZoom;
510
+ }
511
+
512
+ if (moveOnMarkerPress != oldProps->moveOnMarkerPress) {
513
+ result["moveOnMarkerPress"] = moveOnMarkerPress;
514
+ }
515
+
516
+ if (handlePanDrag != oldProps->handlePanDrag) {
517
+ result["handlePanDrag"] = handlePanDrag;
518
+ }
519
+
520
+ if (paddingAdjustmentBehavior != oldProps->paddingAdjustmentBehavior) {
521
+ result["paddingAdjustmentBehavior"] = toDynamic(paddingAdjustmentBehavior);
522
+ }
523
+
524
+ if (pitchEnabled != oldProps->pitchEnabled) {
525
+ result["pitchEnabled"] = pitchEnabled;
526
+ }
527
+
528
+ if (region != oldProps->region) {
529
+ result["region"] = toDynamic(region);
530
+ }
531
+
532
+ if (rotateEnabled != oldProps->rotateEnabled) {
533
+ result["rotateEnabled"] = rotateEnabled;
534
+ }
535
+
536
+ if (scrollDuringRotateOrZoomEnabled != oldProps->scrollDuringRotateOrZoomEnabled) {
537
+ result["scrollDuringRotateOrZoomEnabled"] = scrollDuringRotateOrZoomEnabled;
538
+ }
539
+
540
+ if (scrollEnabled != oldProps->scrollEnabled) {
541
+ result["scrollEnabled"] = scrollEnabled;
542
+ }
543
+
544
+ if (showsBuildings != oldProps->showsBuildings) {
545
+ result["showsBuildings"] = showsBuildings;
546
+ }
547
+
548
+ if (showsCompass != oldProps->showsCompass) {
549
+ result["showsCompass"] = showsCompass;
550
+ }
551
+
552
+ if (showsIndoorLevelPicker != oldProps->showsIndoorLevelPicker) {
553
+ result["showsIndoorLevelPicker"] = showsIndoorLevelPicker;
554
+ }
555
+
556
+ if (showsIndoors != oldProps->showsIndoors) {
557
+ result["showsIndoors"] = showsIndoors;
558
+ }
559
+
560
+ if (showsPointsOfInterests != oldProps->showsPointsOfInterests) {
561
+ result["showsPointsOfInterests"] = showsPointsOfInterests;
562
+ }
563
+
564
+ if (pointsOfInterestFilter != oldProps->pointsOfInterestFilter) {
565
+ result["pointsOfInterestFilter"] = toDynamic(pointsOfInterestFilter);
566
+ }
567
+
568
+ if (showsMyLocationButton != oldProps->showsMyLocationButton) {
569
+ result["showsMyLocationButton"] = showsMyLocationButton;
570
+ }
571
+
572
+ if (showsScale != oldProps->showsScale) {
573
+ result["showsScale"] = showsScale;
574
+ }
575
+
576
+ if (showsUserLocation != oldProps->showsUserLocation) {
577
+ result["showsUserLocation"] = showsUserLocation;
578
+ }
579
+
580
+ if (tintColor != oldProps->tintColor) {
581
+ result["tintColor"] = *tintColor;
582
+ }
583
+
584
+ if (toolbarEnabled != oldProps->toolbarEnabled) {
585
+ result["toolbarEnabled"] = toolbarEnabled;
586
+ }
587
+
588
+ if (userInterfaceStyle != oldProps->userInterfaceStyle) {
589
+ result["userInterfaceStyle"] = toDynamic(userInterfaceStyle);
590
+ }
591
+
592
+ if (customMapStyleString != oldProps->customMapStyleString) {
593
+ result["customMapStyleString"] = customMapStyleString;
594
+ }
595
+
596
+ if (userLocationAnnotationTitle != oldProps->userLocationAnnotationTitle) {
597
+ result["userLocationAnnotationTitle"] = userLocationAnnotationTitle;
598
+ }
599
+
600
+ if (userLocationCalloutEnabled != oldProps->userLocationCalloutEnabled) {
601
+ result["userLocationCalloutEnabled"] = userLocationCalloutEnabled;
602
+ }
603
+
604
+ if (userLocationFastestInterval != oldProps->userLocationFastestInterval) {
605
+ result["userLocationFastestInterval"] = userLocationFastestInterval;
606
+ }
607
+
608
+ if (userLocationPriority != oldProps->userLocationPriority) {
609
+ result["userLocationPriority"] = toDynamic(userLocationPriority);
610
+ }
611
+
612
+ if (userLocationUpdateInterval != oldProps->userLocationUpdateInterval) {
613
+ result["userLocationUpdateInterval"] = userLocationUpdateInterval;
614
+ }
615
+
616
+ if (zoomControlEnabled != oldProps->zoomControlEnabled) {
617
+ result["zoomControlEnabled"] = zoomControlEnabled;
618
+ }
619
+
620
+ if (zoomEnabled != oldProps->zoomEnabled) {
621
+ result["zoomEnabled"] = zoomEnabled;
622
+ }
623
+
624
+ if (showsTraffic != oldProps->showsTraffic) {
625
+ result["showsTraffic"] = showsTraffic;
626
+ }
627
+
628
+ if (zoomTapEnabled != oldProps->zoomTapEnabled) {
629
+ result["zoomTapEnabled"] = zoomTapEnabled;
630
+ }
631
+
632
+ if (cameraZoomRange != oldProps->cameraZoomRange) {
633
+ result["cameraZoomRange"] = toDynamic(cameraZoomRange);
634
+ }
635
+ return result;
636
+ }
637
+ #endif
148
638
  RNMapsMarkerProps::RNMapsMarkerProps(
149
639
  const PropsParserContext &context,
150
640
  const RNMapsMarkerProps &sourceProps,
@@ -167,8 +657,98 @@ RNMapsMarkerProps::RNMapsMarkerProps(
167
657
  pinColor(convertRawProp(context, rawProps, "pinColor", sourceProps.pinColor, {})),
168
658
  titleVisibility(convertRawProp(context, rawProps, "titleVisibility", sourceProps.titleVisibility, {RNMapsMarkerTitleVisibility::Visible})),
169
659
  subtitleVisibility(convertRawProp(context, rawProps, "subtitleVisibility", sourceProps.subtitleVisibility, {RNMapsMarkerSubtitleVisibility::Adaptive})),
170
- useLegacyPinView(convertRawProp(context, rawProps, "useLegacyPinView", sourceProps.useLegacyPinView, {false}))
171
- {}
660
+ useLegacyPinView(convertRawProp(context, rawProps, "useLegacyPinView", sourceProps.useLegacyPinView, {false})) {}
661
+
662
+ #ifdef RN_SERIALIZABLE_STATE
663
+ ComponentName RNMapsMarkerProps::getDiffPropsImplementationTarget() const {
664
+ return "RNMapsMarker";
665
+ }
666
+
667
+ folly::dynamic RNMapsMarkerProps::getDiffProps(
668
+ const Props* prevProps) const {
669
+ static const auto defaultProps = RNMapsMarkerProps();
670
+ const RNMapsMarkerProps* oldProps = prevProps == nullptr
671
+ ? &defaultProps
672
+ : static_cast<const RNMapsMarkerProps*>(prevProps);
673
+ if (this == oldProps) {
674
+ return folly::dynamic::object();
675
+ }
676
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
677
+
678
+ if (anchor != oldProps->anchor) {
679
+ result["anchor"] = toDynamic(anchor);
680
+ }
681
+
682
+ if (calloutAnchor != oldProps->calloutAnchor) {
683
+ result["calloutAnchor"] = toDynamic(calloutAnchor);
684
+ }
685
+
686
+ if (image != oldProps->image) {
687
+ result["image"] = toDynamic(image);
688
+ }
689
+
690
+ if (calloutOffset != oldProps->calloutOffset) {
691
+ result["calloutOffset"] = toDynamic(calloutOffset);
692
+ }
693
+
694
+ if (displayPriority != oldProps->displayPriority) {
695
+ result["displayPriority"] = toDynamic(displayPriority);
696
+ }
697
+
698
+ if (centerOffset != oldProps->centerOffset) {
699
+ result["centerOffset"] = toDynamic(centerOffset);
700
+ }
701
+
702
+ if (coordinate != oldProps->coordinate) {
703
+ result["coordinate"] = toDynamic(coordinate);
704
+ }
705
+
706
+ if (description != oldProps->description) {
707
+ result["description"] = description;
708
+ }
709
+
710
+ if (draggable != oldProps->draggable) {
711
+ result["draggable"] = draggable;
712
+ }
713
+
714
+ if (title != oldProps->title) {
715
+ result["title"] = title;
716
+ }
717
+
718
+ if (tracksViewChanges != oldProps->tracksViewChanges) {
719
+ result["tracksViewChanges"] = tracksViewChanges;
720
+ }
721
+
722
+ if (identifier != oldProps->identifier) {
723
+ result["identifier"] = identifier;
724
+ }
725
+
726
+ if (isPreselected != oldProps->isPreselected) {
727
+ result["isPreselected"] = isPreselected;
728
+ }
729
+
730
+ if ((opacity != oldProps->opacity) && !(std::isnan(opacity) && std::isnan(oldProps->opacity))) {
731
+ result["opacity"] = opacity;
732
+ }
733
+
734
+ if (pinColor != oldProps->pinColor) {
735
+ result["pinColor"] = *pinColor;
736
+ }
737
+
738
+ if (titleVisibility != oldProps->titleVisibility) {
739
+ result["titleVisibility"] = toDynamic(titleVisibility);
740
+ }
741
+
742
+ if (subtitleVisibility != oldProps->subtitleVisibility) {
743
+ result["subtitleVisibility"] = toDynamic(subtitleVisibility);
744
+ }
745
+
746
+ if (useLegacyPinView != oldProps->useLegacyPinView) {
747
+ result["useLegacyPinView"] = useLegacyPinView;
748
+ }
749
+ return result;
750
+ }
751
+ #endif
172
752
  RNMapsOverlayProps::RNMapsOverlayProps(
173
753
  const PropsParserContext &context,
174
754
  const RNMapsOverlayProps &sourceProps,
@@ -178,8 +758,46 @@ RNMapsOverlayProps::RNMapsOverlayProps(
178
758
  bounds(convertRawProp(context, rawProps, "bounds", sourceProps.bounds, {})),
179
759
  image(convertRawProp(context, rawProps, "image", sourceProps.image, {})),
180
760
  opacity(convertRawProp(context, rawProps, "opacity", sourceProps.opacity, {1.0})),
181
- tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
182
- {}
761
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false})) {}
762
+
763
+ #ifdef RN_SERIALIZABLE_STATE
764
+ ComponentName RNMapsOverlayProps::getDiffPropsImplementationTarget() const {
765
+ return "RNMapsOverlay";
766
+ }
767
+
768
+ folly::dynamic RNMapsOverlayProps::getDiffProps(
769
+ const Props* prevProps) const {
770
+ static const auto defaultProps = RNMapsOverlayProps();
771
+ const RNMapsOverlayProps* oldProps = prevProps == nullptr
772
+ ? &defaultProps
773
+ : static_cast<const RNMapsOverlayProps*>(prevProps);
774
+ if (this == oldProps) {
775
+ return folly::dynamic::object();
776
+ }
777
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
778
+
779
+ if ((bearing != oldProps->bearing) && !(std::isnan(bearing) && std::isnan(oldProps->bearing))) {
780
+ result["bearing"] = bearing;
781
+ }
782
+
783
+ if (bounds != oldProps->bounds) {
784
+ result["bounds"] = toDynamic(bounds);
785
+ }
786
+
787
+ if (image != oldProps->image) {
788
+ result["image"] = toDynamic(image);
789
+ }
790
+
791
+ if ((opacity != oldProps->opacity) && !(std::isnan(opacity) && std::isnan(oldProps->opacity))) {
792
+ result["opacity"] = opacity;
793
+ }
794
+
795
+ if (tappable != oldProps->tappable) {
796
+ result["tappable"] = tappable;
797
+ }
798
+ return result;
799
+ }
800
+ #endif
183
801
  RNMapsPolylineProps::RNMapsPolylineProps(
184
802
  const PropsParserContext &context,
185
803
  const RNMapsPolylineProps &sourceProps,
@@ -193,8 +811,62 @@ RNMapsPolylineProps::RNMapsPolylineProps(
193
811
  strokeColor(convertRawProp(context, rawProps, "strokeColor", sourceProps.strokeColor, {})),
194
812
  strokeColors(convertRawProp(context, rawProps, "strokeColors", sourceProps.strokeColors, {})),
195
813
  strokeWidth(convertRawProp(context, rawProps, "strokeWidth", sourceProps.strokeWidth, {1.0})),
196
- tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
197
- {}
814
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false})) {}
815
+
816
+ #ifdef RN_SERIALIZABLE_STATE
817
+ ComponentName RNMapsPolylineProps::getDiffPropsImplementationTarget() const {
818
+ return "RNMapsPolyline";
819
+ }
820
+
821
+ folly::dynamic RNMapsPolylineProps::getDiffProps(
822
+ const Props* prevProps) const {
823
+ static const auto defaultProps = RNMapsPolylineProps();
824
+ const RNMapsPolylineProps* oldProps = prevProps == nullptr
825
+ ? &defaultProps
826
+ : static_cast<const RNMapsPolylineProps*>(prevProps);
827
+ if (this == oldProps) {
828
+ return folly::dynamic::object();
829
+ }
830
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
831
+
832
+ if (coordinates != oldProps->coordinates) {
833
+ result["coordinates"] = toDynamic(coordinates);
834
+ }
835
+
836
+ if (geodesic != oldProps->geodesic) {
837
+ result["geodesic"] = geodesic;
838
+ }
839
+
840
+ if (lineCap != oldProps->lineCap) {
841
+ result["lineCap"] = toDynamic(lineCap);
842
+ }
843
+
844
+ if (lineDashPattern != oldProps->lineDashPattern) {
845
+ result["lineDashPattern"] = toDynamic(lineDashPattern);
846
+ }
847
+
848
+ if (lineJoin != oldProps->lineJoin) {
849
+ result["lineJoin"] = toDynamic(lineJoin);
850
+ }
851
+
852
+ if (strokeColor != oldProps->strokeColor) {
853
+ result["strokeColor"] = *strokeColor;
854
+ }
855
+
856
+ if (strokeColors != oldProps->strokeColors) {
857
+ result["strokeColors"] = toDynamic(strokeColors);
858
+ }
859
+
860
+ if ((strokeWidth != oldProps->strokeWidth) && !(std::isnan(strokeWidth) && std::isnan(oldProps->strokeWidth))) {
861
+ result["strokeWidth"] = strokeWidth;
862
+ }
863
+
864
+ if (tappable != oldProps->tappable) {
865
+ result["tappable"] = tappable;
866
+ }
867
+ return result;
868
+ }
869
+ #endif
198
870
  RNMapsUrlTileProps::RNMapsUrlTileProps(
199
871
  const PropsParserContext &context,
200
872
  const RNMapsUrlTileProps &sourceProps,
@@ -210,8 +882,70 @@ RNMapsUrlTileProps::RNMapsUrlTileProps(
210
882
  tileCacheMaxAge(convertRawProp(context, rawProps, "tileCacheMaxAge", sourceProps.tileCacheMaxAge, {0})),
211
883
  tileCachePath(convertRawProp(context, rawProps, "tileCachePath", sourceProps.tileCachePath, {})),
212
884
  tileSize(convertRawProp(context, rawProps, "tileSize", sourceProps.tileSize, {256})),
213
- urlTemplate(convertRawProp(context, rawProps, "urlTemplate", sourceProps.urlTemplate, {}))
214
- {}
885
+ urlTemplate(convertRawProp(context, rawProps, "urlTemplate", sourceProps.urlTemplate, {})) {}
886
+
887
+ #ifdef RN_SERIALIZABLE_STATE
888
+ ComponentName RNMapsUrlTileProps::getDiffPropsImplementationTarget() const {
889
+ return "RNMapsUrlTile";
890
+ }
891
+
892
+ folly::dynamic RNMapsUrlTileProps::getDiffProps(
893
+ const Props* prevProps) const {
894
+ static const auto defaultProps = RNMapsUrlTileProps();
895
+ const RNMapsUrlTileProps* oldProps = prevProps == nullptr
896
+ ? &defaultProps
897
+ : static_cast<const RNMapsUrlTileProps*>(prevProps);
898
+ if (this == oldProps) {
899
+ return folly::dynamic::object();
900
+ }
901
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
902
+
903
+ if (doubleTileSize != oldProps->doubleTileSize) {
904
+ result["doubleTileSize"] = doubleTileSize;
905
+ }
906
+
907
+ if (flipY != oldProps->flipY) {
908
+ result["flipY"] = flipY;
909
+ }
910
+
911
+ if (maximumNativeZ != oldProps->maximumNativeZ) {
912
+ result["maximumNativeZ"] = maximumNativeZ;
913
+ }
914
+
915
+ if (maximumZ != oldProps->maximumZ) {
916
+ result["maximumZ"] = maximumZ;
917
+ }
918
+
919
+ if (minimumZ != oldProps->minimumZ) {
920
+ result["minimumZ"] = minimumZ;
921
+ }
922
+
923
+ if (offlineMode != oldProps->offlineMode) {
924
+ result["offlineMode"] = offlineMode;
925
+ }
926
+
927
+ if (shouldReplaceMapContent != oldProps->shouldReplaceMapContent) {
928
+ result["shouldReplaceMapContent"] = shouldReplaceMapContent;
929
+ }
930
+
931
+ if (tileCacheMaxAge != oldProps->tileCacheMaxAge) {
932
+ result["tileCacheMaxAge"] = tileCacheMaxAge;
933
+ }
934
+
935
+ if (tileCachePath != oldProps->tileCachePath) {
936
+ result["tileCachePath"] = tileCachePath;
937
+ }
938
+
939
+ if (tileSize != oldProps->tileSize) {
940
+ result["tileSize"] = tileSize;
941
+ }
942
+
943
+ if (urlTemplate != oldProps->urlTemplate) {
944
+ result["urlTemplate"] = urlTemplate;
945
+ }
946
+ return result;
947
+ }
948
+ #endif
215
949
  RNMapsWMSTileProps::RNMapsWMSTileProps(
216
950
  const PropsParserContext &context,
217
951
  const RNMapsWMSTileProps &sourceProps,
@@ -225,7 +959,61 @@ RNMapsWMSTileProps::RNMapsWMSTileProps(
225
959
  tileCacheMaxAge(convertRawProp(context, rawProps, "tileCacheMaxAge", sourceProps.tileCacheMaxAge, {0})),
226
960
  tileCachePath(convertRawProp(context, rawProps, "tileCachePath", sourceProps.tileCachePath, {})),
227
961
  tileSize(convertRawProp(context, rawProps, "tileSize", sourceProps.tileSize, {256})),
228
- urlTemplate(convertRawProp(context, rawProps, "urlTemplate", sourceProps.urlTemplate, {}))
229
- {}
962
+ urlTemplate(convertRawProp(context, rawProps, "urlTemplate", sourceProps.urlTemplate, {})) {}
963
+
964
+ #ifdef RN_SERIALIZABLE_STATE
965
+ ComponentName RNMapsWMSTileProps::getDiffPropsImplementationTarget() const {
966
+ return "RNMapsWMSTile";
967
+ }
968
+
969
+ folly::dynamic RNMapsWMSTileProps::getDiffProps(
970
+ const Props* prevProps) const {
971
+ static const auto defaultProps = RNMapsWMSTileProps();
972
+ const RNMapsWMSTileProps* oldProps = prevProps == nullptr
973
+ ? &defaultProps
974
+ : static_cast<const RNMapsWMSTileProps*>(prevProps);
975
+ if (this == oldProps) {
976
+ return folly::dynamic::object();
977
+ }
978
+ folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
979
+
980
+ if (maximumNativeZ != oldProps->maximumNativeZ) {
981
+ result["maximumNativeZ"] = maximumNativeZ;
982
+ }
983
+
984
+ if (maximumZ != oldProps->maximumZ) {
985
+ result["maximumZ"] = maximumZ;
986
+ }
987
+
988
+ if (minimumZ != oldProps->minimumZ) {
989
+ result["minimumZ"] = minimumZ;
990
+ }
991
+
992
+ if (offlineMode != oldProps->offlineMode) {
993
+ result["offlineMode"] = offlineMode;
994
+ }
995
+
996
+ if (shouldReplaceMapContent != oldProps->shouldReplaceMapContent) {
997
+ result["shouldReplaceMapContent"] = shouldReplaceMapContent;
998
+ }
999
+
1000
+ if (tileCacheMaxAge != oldProps->tileCacheMaxAge) {
1001
+ result["tileCacheMaxAge"] = tileCacheMaxAge;
1002
+ }
1003
+
1004
+ if (tileCachePath != oldProps->tileCachePath) {
1005
+ result["tileCachePath"] = tileCachePath;
1006
+ }
1007
+
1008
+ if (tileSize != oldProps->tileSize) {
1009
+ result["tileSize"] = tileSize;
1010
+ }
1011
+
1012
+ if (urlTemplate != oldProps->urlTemplate) {
1013
+ result["urlTemplate"] = urlTemplate;
1014
+ }
1015
+ return result;
1016
+ }
1017
+ #endif
230
1018
 
231
1019
  } // namespace facebook::react