react-native-maps 1.21.0-alpha.124 → 1.21.0-alpha.126

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 (40) hide show
  1. package/android/build.gradle +0 -11
  2. package/android/src/main/RCTAppDependencyProvider.h +25 -0
  3. package/android/src/main/RCTAppDependencyProvider.mm +55 -0
  4. package/android/src/main/RCTModulesConformingToProtocolsProvider.h +18 -0
  5. package/android/src/main/RCTModulesConformingToProtocolsProvider.mm +33 -0
  6. package/android/src/main/RCTThirdPartyComponentsProvider.h +16 -0
  7. package/android/src/main/RCTThirdPartyComponentsProvider.mm +28 -0
  8. package/android/src/main/ReactAppDependencyProvider.podspec +34 -0
  9. package/android/src/main/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +63 -0
  10. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +35 -0
  11. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +17 -0
  12. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +49 -0
  13. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +23 -0
  14. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +49 -0
  15. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +23 -0
  16. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +206 -0
  17. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +73 -0
  18. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +104 -0
  19. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +39 -0
  20. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +46 -0
  21. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +23 -0
  22. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +58 -0
  23. package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +26 -0
  24. package/android/src/main/jni/CMakeLists.txt +36 -0
  25. package/android/src/main/jni/RNMapsSpecs-generated.cpp +68 -0
  26. package/android/src/main/jni/RNMapsSpecs.h +31 -0
  27. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
  28. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +31 -0
  29. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +977 -0
  30. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +846 -0
  31. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +193 -0
  32. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +1223 -0
  33. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +74 -0
  34. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +268 -0
  35. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +24 -0
  36. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +109 -0
  37. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.cpp +16 -0
  38. package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.h +113 -0
  39. package/package.json +3 -2
  40. package/react-native.config.js +16 -0
@@ -0,0 +1,193 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GeneratePropsCpp.js
9
+ */
10
+
11
+ #include "Props.h"
12
+ #include <react/renderer/components/image/conversions.h>
13
+ #include <react/renderer/core/PropsParserContext.h>
14
+ #include <react/renderer/core/propsConversions.h>
15
+
16
+ namespace facebook::react {
17
+
18
+ RNMapsCalloutProps::RNMapsCalloutProps(
19
+ const PropsParserContext &context,
20
+ const RNMapsCalloutProps &sourceProps,
21
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
22
+
23
+ alphaHitTest(convertRawProp(context, rawProps, "alphaHitTest", sourceProps.alphaHitTest, {false})),
24
+ tooltip(convertRawProp(context, rawProps, "tooltip", sourceProps.tooltip, {false}))
25
+ {}
26
+ RNMapsCircleProps::RNMapsCircleProps(
27
+ const PropsParserContext &context,
28
+ const RNMapsCircleProps &sourceProps,
29
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
30
+
31
+ center(convertRawProp(context, rawProps, "center", sourceProps.center, {})),
32
+ fillColor(convertRawProp(context, rawProps, "fillColor", sourceProps.fillColor, {})),
33
+ radius(convertRawProp(context, rawProps, "radius", sourceProps.radius, {0.0})),
34
+ strokeColor(convertRawProp(context, rawProps, "strokeColor", sourceProps.strokeColor, {})),
35
+ strokeWidth(convertRawProp(context, rawProps, "strokeWidth", sourceProps.strokeWidth, {0.0})),
36
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
37
+ {}
38
+ RNMapsGoogleMapViewProps::RNMapsGoogleMapViewProps(
39
+ const PropsParserContext &context,
40
+ const RNMapsGoogleMapViewProps &sourceProps,
41
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
42
+
43
+ camera(convertRawProp(context, rawProps, "camera", sourceProps.camera, {})),
44
+ initialCamera(convertRawProp(context, rawProps, "initialCamera", sourceProps.initialCamera, {})),
45
+ initialRegion(convertRawProp(context, rawProps, "initialRegion", sourceProps.initialRegion, {})),
46
+ kmlSrc(convertRawProp(context, rawProps, "kmlSrc", sourceProps.kmlSrc, {})),
47
+ googleMapId(convertRawProp(context, rawProps, "googleMapId", sourceProps.googleMapId, {})),
48
+ loadingBackgroundColor(convertRawProp(context, rawProps, "loadingBackgroundColor", sourceProps.loadingBackgroundColor, {})),
49
+ mapPadding(convertRawProp(context, rawProps, "mapPadding", sourceProps.mapPadding, {})),
50
+ mapType(convertRawProp(context, rawProps, "mapType", sourceProps.mapType, {RNMapsGoogleMapViewMapType::Standard})),
51
+ maxZoom(convertRawProp(context, rawProps, "maxZoom", sourceProps.maxZoom, {0.0})),
52
+ minZoom(convertRawProp(context, rawProps, "minZoom", sourceProps.minZoom, {0.0})),
53
+ paddingAdjustmentBehavior(convertRawProp(context, rawProps, "paddingAdjustmentBehavior", sourceProps.paddingAdjustmentBehavior, {RNMapsGoogleMapViewPaddingAdjustmentBehavior::Never})),
54
+ pitchEnabled(convertRawProp(context, rawProps, "pitchEnabled", sourceProps.pitchEnabled, {true})),
55
+ region(convertRawProp(context, rawProps, "region", sourceProps.region, {})),
56
+ rotateEnabled(convertRawProp(context, rawProps, "rotateEnabled", sourceProps.rotateEnabled, {true})),
57
+ scrollDuringRotateOrZoomEnabled(convertRawProp(context, rawProps, "scrollDuringRotateOrZoomEnabled", sourceProps.scrollDuringRotateOrZoomEnabled, {true})),
58
+ scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {true})),
59
+ showsBuildings(convertRawProp(context, rawProps, "showsBuildings", sourceProps.showsBuildings, {true})),
60
+ showsCompass(convertRawProp(context, rawProps, "showsCompass", sourceProps.showsCompass, {true})),
61
+ showsIndoorLevelPicker(convertRawProp(context, rawProps, "showsIndoorLevelPicker", sourceProps.showsIndoorLevelPicker, {false})),
62
+ showsIndoors(convertRawProp(context, rawProps, "showsIndoors", sourceProps.showsIndoors, {true})),
63
+ showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {true})),
64
+ showsPointsOfInterest(convertRawProp(context, rawProps, "showsPointsOfInterest", sourceProps.showsPointsOfInterest, {false})),
65
+ showsScale(convertRawProp(context, rawProps, "showsScale", sourceProps.showsScale, {false})),
66
+ showsTraffic(convertRawProp(context, rawProps, "showsTraffic", sourceProps.showsTraffic, {false})),
67
+ showsUserLocation(convertRawProp(context, rawProps, "showsUserLocation", sourceProps.showsUserLocation, {false})),
68
+ userInterfaceStyle(convertRawProp(context, rawProps, "userInterfaceStyle", sourceProps.userInterfaceStyle, {RNMapsGoogleMapViewUserInterfaceStyle::System})),
69
+ userLocationCalloutEnabled(convertRawProp(context, rawProps, "userLocationCalloutEnabled", sourceProps.userLocationCalloutEnabled, {false})),
70
+ userLocationFastestInterval(convertRawProp(context, rawProps, "userLocationFastestInterval", sourceProps.userLocationFastestInterval, {0})),
71
+ userLocationPriority(convertRawProp(context, rawProps, "userLocationPriority", sourceProps.userLocationPriority, {RNMapsGoogleMapViewUserLocationPriority::High})),
72
+ userLocationUpdateInterval(convertRawProp(context, rawProps, "userLocationUpdateInterval", sourceProps.userLocationUpdateInterval, {0})),
73
+ zoomControlEnabled(convertRawProp(context, rawProps, "zoomControlEnabled", sourceProps.zoomControlEnabled, {false})),
74
+ zoomEnabled(convertRawProp(context, rawProps, "zoomEnabled", sourceProps.zoomEnabled, {true})),
75
+ zoomTapEnabled(convertRawProp(context, rawProps, "zoomTapEnabled", sourceProps.zoomTapEnabled, {true}))
76
+ {}
77
+ RNMapsGooglePolygonProps::RNMapsGooglePolygonProps(
78
+ const PropsParserContext &context,
79
+ const RNMapsGooglePolygonProps &sourceProps,
80
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
81
+
82
+ coordinates(convertRawProp(context, rawProps, "coordinates", sourceProps.coordinates, {})),
83
+ fillColor(convertRawProp(context, rawProps, "fillColor", sourceProps.fillColor, {})),
84
+ strokeColor(convertRawProp(context, rawProps, "strokeColor", sourceProps.strokeColor, {})),
85
+ geodesic(convertRawProp(context, rawProps, "geodesic", sourceProps.geodesic, {false})),
86
+ holes(convertRawProp(context, rawProps, "holes", sourceProps.holes, {})),
87
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
88
+ {}
89
+ RNMapsMapViewProps::RNMapsMapViewProps(
90
+ const PropsParserContext &context,
91
+ const RNMapsMapViewProps &sourceProps,
92
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
93
+
94
+ cacheEnabled(convertRawProp(context, rawProps, "cacheEnabled", sourceProps.cacheEnabled, {false})),
95
+ camera(convertRawProp(context, rawProps, "camera", sourceProps.camera, {})),
96
+ compassOffset(convertRawProp(context, rawProps, "compassOffset", sourceProps.compassOffset, {})),
97
+ followsUserLocation(convertRawProp(context, rawProps, "followsUserLocation", sourceProps.followsUserLocation, {false})),
98
+ poiClickEnabled(convertRawProp(context, rawProps, "poiClickEnabled", sourceProps.poiClickEnabled, {false})),
99
+ initialCamera(convertRawProp(context, rawProps, "initialCamera", sourceProps.initialCamera, {})),
100
+ initialRegion(convertRawProp(context, rawProps, "initialRegion", sourceProps.initialRegion, {})),
101
+ kmlSrc(convertRawProp(context, rawProps, "kmlSrc", sourceProps.kmlSrc, {})),
102
+ legalLabelInsets(convertRawProp(context, rawProps, "legalLabelInsets", sourceProps.legalLabelInsets, {})),
103
+ liteMode(convertRawProp(context, rawProps, "liteMode", sourceProps.liteMode, {false})),
104
+ googleMapId(convertRawProp(context, rawProps, "googleMapId", sourceProps.googleMapId, {})),
105
+ googleRenderer(convertRawProp(context, rawProps, "googleRenderer", sourceProps.googleRenderer, {RNMapsMapViewGoogleRenderer::LATEST})),
106
+ loadingBackgroundColor(convertRawProp(context, rawProps, "loadingBackgroundColor", sourceProps.loadingBackgroundColor, {})),
107
+ loadingEnabled(convertRawProp(context, rawProps, "loadingEnabled", sourceProps.loadingEnabled, {false})),
108
+ loadingIndicatorColor(convertRawProp(context, rawProps, "loadingIndicatorColor", sourceProps.loadingIndicatorColor, {})),
109
+ mapPadding(convertRawProp(context, rawProps, "mapPadding", sourceProps.mapPadding, {})),
110
+ mapType(convertRawProp(context, rawProps, "mapType", sourceProps.mapType, {RNMapsMapViewMapType::Standard})),
111
+ maxDelta(convertRawProp(context, rawProps, "maxDelta", sourceProps.maxDelta, {0.0})),
112
+ maxZoom(convertRawProp(context, rawProps, "maxZoom", sourceProps.maxZoom, {0.0})),
113
+ minDelta(convertRawProp(context, rawProps, "minDelta", sourceProps.minDelta, {0.0})),
114
+ minZoom(convertRawProp(context, rawProps, "minZoom", sourceProps.minZoom, {0.0})),
115
+ moveOnMarkerPress(convertRawProp(context, rawProps, "moveOnMarkerPress", sourceProps.moveOnMarkerPress, {true})),
116
+ handlePanDrag(convertRawProp(context, rawProps, "handlePanDrag", sourceProps.handlePanDrag, {false})),
117
+ paddingAdjustmentBehavior(convertRawProp(context, rawProps, "paddingAdjustmentBehavior", sourceProps.paddingAdjustmentBehavior, {RNMapsMapViewPaddingAdjustmentBehavior::Never})),
118
+ pitchEnabled(convertRawProp(context, rawProps, "pitchEnabled", sourceProps.pitchEnabled, {true})),
119
+ region(convertRawProp(context, rawProps, "region", sourceProps.region, {})),
120
+ rotateEnabled(convertRawProp(context, rawProps, "rotateEnabled", sourceProps.rotateEnabled, {true})),
121
+ scrollDuringRotateOrZoomEnabled(convertRawProp(context, rawProps, "scrollDuringRotateOrZoomEnabled", sourceProps.scrollDuringRotateOrZoomEnabled, {true})),
122
+ scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {true})),
123
+ showsBuildings(convertRawProp(context, rawProps, "showsBuildings", sourceProps.showsBuildings, {true})),
124
+ showsCompass(convertRawProp(context, rawProps, "showsCompass", sourceProps.showsCompass, {true})),
125
+ showsIndoorLevelPicker(convertRawProp(context, rawProps, "showsIndoorLevelPicker", sourceProps.showsIndoorLevelPicker, {false})),
126
+ showsIndoors(convertRawProp(context, rawProps, "showsIndoors", sourceProps.showsIndoors, {true})),
127
+ showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {true})),
128
+ showsScale(convertRawProp(context, rawProps, "showsScale", sourceProps.showsScale, {false})),
129
+ showsUserLocation(convertRawProp(context, rawProps, "showsUserLocation", sourceProps.showsUserLocation, {false})),
130
+ tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
131
+ toolbarEnabled(convertRawProp(context, rawProps, "toolbarEnabled", sourceProps.toolbarEnabled, {true})),
132
+ userInterfaceStyle(convertRawProp(context, rawProps, "userInterfaceStyle", sourceProps.userInterfaceStyle, {RNMapsMapViewUserInterfaceStyle::System})),
133
+ userLocationAnnotationTitle(convertRawProp(context, rawProps, "userLocationAnnotationTitle", sourceProps.userLocationAnnotationTitle, {})),
134
+ userLocationCalloutEnabled(convertRawProp(context, rawProps, "userLocationCalloutEnabled", sourceProps.userLocationCalloutEnabled, {false})),
135
+ userLocationFastestInterval(convertRawProp(context, rawProps, "userLocationFastestInterval", sourceProps.userLocationFastestInterval, {5000})),
136
+ userLocationPriority(convertRawProp(context, rawProps, "userLocationPriority", sourceProps.userLocationPriority, {RNMapsMapViewUserLocationPriority::High})),
137
+ userLocationUpdateInterval(convertRawProp(context, rawProps, "userLocationUpdateInterval", sourceProps.userLocationUpdateInterval, {5000})),
138
+ zoomControlEnabled(convertRawProp(context, rawProps, "zoomControlEnabled", sourceProps.zoomControlEnabled, {true})),
139
+ zoomEnabled(convertRawProp(context, rawProps, "zoomEnabled", sourceProps.zoomEnabled, {true})),
140
+ showsTraffic(convertRawProp(context, rawProps, "showsTraffic", sourceProps.showsTraffic, {false})),
141
+ zoomTapEnabled(convertRawProp(context, rawProps, "zoomTapEnabled", sourceProps.zoomTapEnabled, {true})),
142
+ cameraZoomRange(convertRawProp(context, rawProps, "cameraZoomRange", sourceProps.cameraZoomRange, {}))
143
+ {}
144
+ RNMapsMarkerProps::RNMapsMarkerProps(
145
+ const PropsParserContext &context,
146
+ const RNMapsMarkerProps &sourceProps,
147
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
148
+
149
+ anchor(convertRawProp(context, rawProps, "anchor", sourceProps.anchor, {})),
150
+ calloutAnchor(convertRawProp(context, rawProps, "calloutAnchor", sourceProps.calloutAnchor, {})),
151
+ image(convertRawProp(context, rawProps, "image", sourceProps.image, {})),
152
+ calloutOffset(convertRawProp(context, rawProps, "calloutOffset", sourceProps.calloutOffset, {})),
153
+ displayPriority(convertRawProp(context, rawProps, "displayPriority", sourceProps.displayPriority, {RNMapsMarkerDisplayPriority::Required})),
154
+ coordinate(convertRawProp(context, rawProps, "coordinate", sourceProps.coordinate, {})),
155
+ description(convertRawProp(context, rawProps, "description", sourceProps.description, {})),
156
+ draggable(convertRawProp(context, rawProps, "draggable", sourceProps.draggable, {false})),
157
+ title(convertRawProp(context, rawProps, "title", sourceProps.title, {})),
158
+ identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {})),
159
+ isPreselected(convertRawProp(context, rawProps, "isPreselected", sourceProps.isPreselected, {false})),
160
+ opacity(convertRawProp(context, rawProps, "opacity", sourceProps.opacity, {1.0})),
161
+ pinColor(convertRawProp(context, rawProps, "pinColor", sourceProps.pinColor, {})),
162
+ titleVisibility(convertRawProp(context, rawProps, "titleVisibility", sourceProps.titleVisibility, {RNMapsMarkerTitleVisibility::Visible})),
163
+ subtitleVisibility(convertRawProp(context, rawProps, "subtitleVisibility", sourceProps.subtitleVisibility, {RNMapsMarkerSubtitleVisibility::Adaptive})),
164
+ useLegacyPinView(convertRawProp(context, rawProps, "useLegacyPinView", sourceProps.useLegacyPinView, {false}))
165
+ {}
166
+ RNMapsOverlayProps::RNMapsOverlayProps(
167
+ const PropsParserContext &context,
168
+ const RNMapsOverlayProps &sourceProps,
169
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
170
+
171
+ bearing(convertRawProp(context, rawProps, "bearing", sourceProps.bearing, {0.0})),
172
+ bounds(convertRawProp(context, rawProps, "bounds", sourceProps.bounds, {})),
173
+ image(convertRawProp(context, rawProps, "image", sourceProps.image, {})),
174
+ opacity(convertRawProp(context, rawProps, "opacity", sourceProps.opacity, {1.0})),
175
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
176
+ {}
177
+ RNMapsPolylineProps::RNMapsPolylineProps(
178
+ const PropsParserContext &context,
179
+ const RNMapsPolylineProps &sourceProps,
180
+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
181
+
182
+ coordinates(convertRawProp(context, rawProps, "coordinates", sourceProps.coordinates, {})),
183
+ geodesic(convertRawProp(context, rawProps, "geodesic", sourceProps.geodesic, {false})),
184
+ lineCap(convertRawProp(context, rawProps, "lineCap", sourceProps.lineCap, {RNMapsPolylineLineCap::Butt})),
185
+ lineDashPattern(convertRawProp(context, rawProps, "lineDashPattern", sourceProps.lineDashPattern, {})),
186
+ lineJoin(convertRawProp(context, rawProps, "lineJoin", sourceProps.lineJoin, {RNMapsPolylineLineJoin::Miter})),
187
+ strokeColor(convertRawProp(context, rawProps, "strokeColor", sourceProps.strokeColor, {})),
188
+ strokeColors(convertRawProp(context, rawProps, "strokeColors", sourceProps.strokeColors, {})),
189
+ strokeWidth(convertRawProp(context, rawProps, "strokeWidth", sourceProps.strokeWidth, {0.0})),
190
+ tappable(convertRawProp(context, rawProps, "tappable", sourceProps.tappable, {false}))
191
+ {}
192
+
193
+ } // namespace facebook::react