react-native-maps 1.21.0-alpha.95 → 1.21.0-alpha.97

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 (62) hide show
  1. package/lib/{MapMarker.d.ts → src/MapMarker.d.ts} +1 -1
  2. package/lib/{MapMarker.js → src/MapMarker.js} +1 -1
  3. package/lib/{MapView.js → src/MapView.js} +2 -2
  4. package/lib/{createFabricMap.d.ts → src/createFabricMap.d.ts} +2 -2
  5. package/lib/{createFabricMap.js → src/createFabricMap.js} +1 -1
  6. package/lib/{decorateMapComponent.js → src/decorateMapComponent.js} +6 -6
  7. package/package.json +4 -8
  8. package/specs/NativeAirMapsModule.ts +36 -0
  9. package/specs/NativeComponentCallout.ts +63 -0
  10. package/specs/NativeComponentCircle.ts +94 -0
  11. package/specs/NativeComponentGoogleMapView.ts +916 -0
  12. package/specs/NativeComponentGooglePolygon.ts +94 -0
  13. package/specs/NativeComponentMapView.ts +1071 -0
  14. package/specs/NativeComponentMarker.ts +326 -0
  15. package/specs/NativeComponentOverlay.ts +89 -0
  16. package/specs/NativeComponentPolyline.ts +124 -0
  17. /package/lib/{AnimatedRegion.d.ts → src/AnimatedRegion.d.ts} +0 -0
  18. /package/lib/{AnimatedRegion.js → src/AnimatedRegion.js} +0 -0
  19. /package/lib/{Geojson.d.ts → src/Geojson.d.ts} +0 -0
  20. /package/lib/{Geojson.js → src/Geojson.js} +0 -0
  21. /package/lib/{MapCallout.d.ts → src/MapCallout.d.ts} +0 -0
  22. /package/lib/{MapCallout.js → src/MapCallout.js} +0 -0
  23. /package/lib/{MapCalloutSubview.d.ts → src/MapCalloutSubview.d.ts} +0 -0
  24. /package/lib/{MapCalloutSubview.js → src/MapCalloutSubview.js} +0 -0
  25. /package/lib/{MapCircle.d.ts → src/MapCircle.d.ts} +0 -0
  26. /package/lib/{MapCircle.js → src/MapCircle.js} +0 -0
  27. /package/lib/{MapHeatmap.d.ts → src/MapHeatmap.d.ts} +0 -0
  28. /package/lib/{MapHeatmap.js → src/MapHeatmap.js} +0 -0
  29. /package/lib/{MapLocalTile.d.ts → src/MapLocalTile.d.ts} +0 -0
  30. /package/lib/{MapLocalTile.js → src/MapLocalTile.js} +0 -0
  31. /package/lib/{MapMarkerNativeComponent.d.ts → src/MapMarkerNativeComponent.d.ts} +0 -0
  32. /package/lib/{MapMarkerNativeComponent.js → src/MapMarkerNativeComponent.js} +0 -0
  33. /package/lib/{MapOverlay.d.ts → src/MapOverlay.d.ts} +0 -0
  34. /package/lib/{MapOverlay.js → src/MapOverlay.js} +0 -0
  35. /package/lib/{MapPolygon.d.ts → src/MapPolygon.d.ts} +0 -0
  36. /package/lib/{MapPolygon.js → src/MapPolygon.js} +0 -0
  37. /package/lib/{MapPolygon.types.d.ts → src/MapPolygon.types.d.ts} +0 -0
  38. /package/lib/{MapPolygon.types.js → src/MapPolygon.types.js} +0 -0
  39. /package/lib/{MapPolyline.d.ts → src/MapPolyline.d.ts} +0 -0
  40. /package/lib/{MapPolyline.js → src/MapPolyline.js} +0 -0
  41. /package/lib/{MapUrlTile.d.ts → src/MapUrlTile.d.ts} +0 -0
  42. /package/lib/{MapUrlTile.js → src/MapUrlTile.js} +0 -0
  43. /package/lib/{MapView.d.ts → src/MapView.d.ts} +0 -0
  44. /package/lib/{MapView.types.d.ts → src/MapView.types.d.ts} +0 -0
  45. /package/lib/{MapView.types.js → src/MapView.types.js} +0 -0
  46. /package/lib/{MapView.web.d.ts → src/MapView.web.d.ts} +0 -0
  47. /package/lib/{MapView.web.js → src/MapView.web.js} +0 -0
  48. /package/lib/{MapViewNativeComponent.d.ts → src/MapViewNativeComponent.d.ts} +0 -0
  49. /package/lib/{MapViewNativeComponent.js → src/MapViewNativeComponent.js} +0 -0
  50. /package/lib/{MapWMSTile.d.ts → src/MapWMSTile.d.ts} +0 -0
  51. /package/lib/{MapWMSTile.js → src/MapWMSTile.js} +0 -0
  52. /package/lib/{ProviderConstants.d.ts → src/ProviderConstants.d.ts} +0 -0
  53. /package/lib/{ProviderConstants.js → src/ProviderConstants.js} +0 -0
  54. /package/lib/{decorateMapComponent.d.ts → src/decorateMapComponent.d.ts} +0 -0
  55. /package/lib/{fixImageProp.d.ts → src/fixImageProp.d.ts} +0 -0
  56. /package/lib/{fixImageProp.js → src/fixImageProp.js} +0 -0
  57. /package/lib/{index.d.ts → src/index.d.ts} +0 -0
  58. /package/lib/{index.js → src/index.js} +0 -0
  59. /package/lib/{sharedTypes.d.ts → src/sharedTypes.d.ts} +0 -0
  60. /package/lib/{sharedTypes.js → src/sharedTypes.js} +0 -0
  61. /package/lib/{sharedTypesInternal.d.ts → src/sharedTypesInternal.d.ts} +0 -0
  62. /package/lib/{sharedTypesInternal.js → src/sharedTypesInternal.js} +0 -0
@@ -0,0 +1,94 @@
1
+ import type {HostComponent, ViewProps, ColorValue} from 'react-native';
2
+
3
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
+ import {
5
+ Double,
6
+ BubblingEventHandler,
7
+ } from 'react-native/Libraries/Types/CodegenTypes';
8
+
9
+ export type LatLng = Readonly<{
10
+ latitude: Double; // Non-nullable Double for latitude
11
+ longitude: Double; // Non-nullable Double for longitude
12
+ }>;
13
+
14
+ export type PolygonPressEventHandler = BubblingEventHandler<
15
+ Readonly<{
16
+ action?: string;
17
+ id: string;
18
+ coordinate: {
19
+ latitude: Double; // Inlined LatLng
20
+ longitude: Double;
21
+ };
22
+ position?: {
23
+ x: Double; // Inlined Point
24
+ y: Double;
25
+ }; // Optional position for Android
26
+ }>
27
+ >;
28
+
29
+ export interface PolygonFabricNativeProps extends ViewProps {
30
+ /**
31
+ * An array of coordinates to describe the polygon
32
+ *
33
+ * @platform iOS: Supported
34
+ * @platform Android: Supported
35
+ */
36
+ coordinates: ReadonlyArray<LatLng>;
37
+ /**
38
+ * The fill color to use for the path.
39
+ *
40
+ * @default `#000`, `rgba(r,g,b,0.5)`
41
+ * @platform iOS: Supported
42
+ * @platform Android: Supported
43
+ */
44
+
45
+ fillColor?: ColorValue;
46
+
47
+ /**
48
+ * The stroke color to use for the path.
49
+ *
50
+ * @default `#000`, `rgba(r,g,b,0.5)`
51
+ * @platform iOS: Supported
52
+ * @platform Android: Supported
53
+ */
54
+ strokeColor?: ColorValue;
55
+
56
+ /**
57
+ * Boolean to indicate whether to draw each segment of the line as a geodesic as opposed to straight lines on the Mercator projection.
58
+ * A geodesic is the shortest path between two points on the Earth's surface.
59
+ * The geodesic curve is constructed assuming the Earth is a sphere.
60
+ *
61
+ * @platform iOS: Google Maps only
62
+ * @platform Android: Supported
63
+ */
64
+ geodesic?: boolean;
65
+
66
+ /**
67
+ * A 2d array of coordinates to describe holes of the polygon where each hole has at least 3 points.
68
+ *
69
+ * @platform iOS: Supported
70
+ * @platform Android: Supported
71
+ */
72
+ holes?: ReadonlyArray<ReadonlyArray<LatLng>>;
73
+
74
+ /**
75
+ * Boolean to allow a polygon to be tappable and use the onPress function.
76
+ *
77
+ * @platform iOS: Google Maps only
78
+ * @platform Android: Supported
79
+ */
80
+ tappable?: boolean;
81
+
82
+ /**
83
+ * Callback that is called when user taps on the map.
84
+ *
85
+ * @platform iOS: Supported
86
+ * @platform Android: Supported
87
+ */
88
+ onPress?: PolygonPressEventHandler;
89
+ }
90
+
91
+ export default codegenNativeComponent<PolygonFabricNativeProps>(
92
+ 'RNMapsGooglePolygon',
93
+ {},
94
+ ) as HostComponent<PolygonFabricNativeProps>;