react-native-maps 1.21.0-alpha.112 → 1.21.0-alpha.113

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/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +4 -4
  2. package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +5 -5
  3. package/ios/AirMaps/RNMapsAirModule.h +1 -1
  4. package/ios/AirMaps/RNMapsMapView.mm +4 -4
  5. package/ios/AirMaps/RNMapsMarkerView.mm +4 -4
  6. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  7. package/ios/generated/RCTAppDependencyProvider.mm +55 -0
  8. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  9. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  10. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  11. package/ios/generated/RCTThirdPartyComponentsProvider.mm +26 -0
  12. package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
  13. package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +31 -0
  14. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +977 -0
  15. package/ios/generated/RNMapsSpecs/EventEmitters.h +846 -0
  16. package/ios/generated/RNMapsSpecs/Props.cpp +193 -0
  17. package/ios/generated/RNMapsSpecs/Props.h +1223 -0
  18. package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +603 -0
  19. package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +92 -0
  20. package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +137 -0
  21. package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +24 -0
  22. package/ios/generated/RNMapsSpecs/ShadowNodes.h +109 -0
  23. package/ios/generated/RNMapsSpecs/States.cpp +16 -0
  24. package/ios/generated/RNMapsSpecs/States.h +113 -0
  25. package/ios/generated/RNMapsSpecsJSI-generated.cpp +74 -0
  26. package/ios/generated/RNMapsSpecsJSI.h +268 -0
  27. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  28. package/package.json +9 -5
  29. package/react-native-google-maps.podspec +1 -0
  30. package/react-native-maps-generated.podspec +31 -0
  31. package/react-native-maps.podspec +1 -1
  32. package/specs/NativeAirMapsModule.ts +0 -36
  33. package/specs/NativeComponentCallout.ts +0 -63
  34. package/specs/NativeComponentCircle.ts +0 -94
  35. package/specs/NativeComponentGoogleMapView.ts +0 -913
  36. package/specs/NativeComponentGooglePolygon.ts +0 -94
  37. package/specs/NativeComponentMapView.ts +0 -1059
  38. package/specs/NativeComponentMarker.ts +0 -326
  39. package/specs/NativeComponentOverlay.ts +0 -89
  40. package/specs/NativeComponentPolyline.ts +0 -124
@@ -0,0 +1,268 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ #pragma mark - NativeAirMapsModuleLatLng
20
+
21
+ template <typename P0, typename P1>
22
+ struct NativeAirMapsModuleLatLng {
23
+ P0 latitude;
24
+ P1 longitude;
25
+ bool operator==(const NativeAirMapsModuleLatLng &other) const {
26
+ return latitude == other.latitude && longitude == other.longitude;
27
+ }
28
+ };
29
+
30
+ template <typename T>
31
+ struct NativeAirMapsModuleLatLngBridging {
32
+ static T types;
33
+
34
+ static T fromJs(
35
+ jsi::Runtime &rt,
36
+ const jsi::Object &value,
37
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
38
+ T result{
39
+ bridging::fromJs<decltype(types.latitude)>(rt, value.getProperty(rt, "latitude"), jsInvoker),
40
+ bridging::fromJs<decltype(types.longitude)>(rt, value.getProperty(rt, "longitude"), jsInvoker)};
41
+ return result;
42
+ }
43
+
44
+ #ifdef DEBUG
45
+ static double latitudeToJs(jsi::Runtime &rt, decltype(types.latitude) value) {
46
+ return bridging::toJs(rt, value);
47
+ }
48
+
49
+ static double longitudeToJs(jsi::Runtime &rt, decltype(types.longitude) value) {
50
+ return bridging::toJs(rt, value);
51
+ }
52
+ #endif
53
+
54
+ static jsi::Object toJs(
55
+ jsi::Runtime &rt,
56
+ const T &value,
57
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
58
+ auto result = facebook::jsi::Object(rt);
59
+ result.setProperty(rt, "latitude", bridging::toJs(rt, value.latitude, jsInvoker));
60
+ result.setProperty(rt, "longitude", bridging::toJs(rt, value.longitude, jsInvoker));
61
+ return result;
62
+ }
63
+ };
64
+
65
+
66
+
67
+ #pragma mark - NativeAirMapsModuleMapBoundaries
68
+
69
+ template <typename P0, typename P1>
70
+ struct NativeAirMapsModuleMapBoundaries {
71
+ P0 northEast;
72
+ P1 southWest;
73
+ bool operator==(const NativeAirMapsModuleMapBoundaries &other) const {
74
+ return northEast == other.northEast && southWest == other.southWest;
75
+ }
76
+ };
77
+
78
+ template <typename T>
79
+ struct NativeAirMapsModuleMapBoundariesBridging {
80
+ static T types;
81
+
82
+ static T fromJs(
83
+ jsi::Runtime &rt,
84
+ const jsi::Object &value,
85
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
86
+ T result{
87
+ bridging::fromJs<decltype(types.northEast)>(rt, value.getProperty(rt, "northEast"), jsInvoker),
88
+ bridging::fromJs<decltype(types.southWest)>(rt, value.getProperty(rt, "southWest"), jsInvoker)};
89
+ return result;
90
+ }
91
+
92
+ #ifdef DEBUG
93
+ static jsi::Object northEastToJs(jsi::Runtime &rt, decltype(types.northEast) value) {
94
+ return bridging::toJs(rt, value);
95
+ }
96
+
97
+ static jsi::Object southWestToJs(jsi::Runtime &rt, decltype(types.southWest) value) {
98
+ return bridging::toJs(rt, value);
99
+ }
100
+ #endif
101
+
102
+ static jsi::Object toJs(
103
+ jsi::Runtime &rt,
104
+ const T &value,
105
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
106
+ auto result = facebook::jsi::Object(rt);
107
+ result.setProperty(rt, "northEast", bridging::toJs(rt, value.northEast, jsInvoker));
108
+ result.setProperty(rt, "southWest", bridging::toJs(rt, value.southWest, jsInvoker));
109
+ return result;
110
+ }
111
+ };
112
+
113
+
114
+
115
+ #pragma mark - NativeAirMapsModulePoint
116
+
117
+ template <typename P0, typename P1>
118
+ struct NativeAirMapsModulePoint {
119
+ P0 x;
120
+ P1 y;
121
+ bool operator==(const NativeAirMapsModulePoint &other) const {
122
+ return x == other.x && y == other.y;
123
+ }
124
+ };
125
+
126
+ template <typename T>
127
+ struct NativeAirMapsModulePointBridging {
128
+ static T types;
129
+
130
+ static T fromJs(
131
+ jsi::Runtime &rt,
132
+ const jsi::Object &value,
133
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
134
+ T result{
135
+ bridging::fromJs<decltype(types.x)>(rt, value.getProperty(rt, "x"), jsInvoker),
136
+ bridging::fromJs<decltype(types.y)>(rt, value.getProperty(rt, "y"), jsInvoker)};
137
+ return result;
138
+ }
139
+
140
+ #ifdef DEBUG
141
+ static double xToJs(jsi::Runtime &rt, decltype(types.x) value) {
142
+ return bridging::toJs(rt, value);
143
+ }
144
+
145
+ static double yToJs(jsi::Runtime &rt, decltype(types.y) value) {
146
+ return bridging::toJs(rt, value);
147
+ }
148
+ #endif
149
+
150
+ static jsi::Object toJs(
151
+ jsi::Runtime &rt,
152
+ const T &value,
153
+ const std::shared_ptr<CallInvoker> &jsInvoker) {
154
+ auto result = facebook::jsi::Object(rt);
155
+ result.setProperty(rt, "x", bridging::toJs(rt, value.x, jsInvoker));
156
+ result.setProperty(rt, "y", bridging::toJs(rt, value.y, jsInvoker));
157
+ return result;
158
+ }
159
+ };
160
+
161
+ class JSI_EXPORT NativeAirMapsModuleCxxSpecJSI : public TurboModule {
162
+ protected:
163
+ NativeAirMapsModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
164
+
165
+ public:
166
+ virtual jsi::Value getCamera(jsi::Runtime &rt, double tag) = 0;
167
+ virtual jsi::Value getMarkersFrames(jsi::Runtime &rt, double tag, bool onlyVisible) = 0;
168
+ virtual jsi::Value getMapBoundaries(jsi::Runtime &rt, double tag) = 0;
169
+ virtual jsi::Value takeSnapshot(jsi::Runtime &rt, double tag, jsi::String config) = 0;
170
+ virtual jsi::Value getAddressFromCoordinates(jsi::Runtime &rt, double tag, jsi::Object coordinate) = 0;
171
+ virtual jsi::Value getPointForCoordinate(jsi::Runtime &rt, double tag, jsi::Object coordinate) = 0;
172
+ virtual jsi::Value getCoordinateForPoint(jsi::Runtime &rt, double tag, jsi::Object point) = 0;
173
+
174
+ };
175
+
176
+ template <typename T>
177
+ class JSI_EXPORT NativeAirMapsModuleCxxSpec : public TurboModule {
178
+ public:
179
+ jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
180
+ return delegate_.create(rt, propName);
181
+ }
182
+
183
+ std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
184
+ return delegate_.getPropertyNames(runtime);
185
+ }
186
+
187
+ static constexpr std::string_view kModuleName = "RNMapsAirModule";
188
+
189
+ protected:
190
+ NativeAirMapsModuleCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
191
+ : TurboModule(std::string{NativeAirMapsModuleCxxSpec::kModuleName}, jsInvoker),
192
+ delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
193
+
194
+
195
+ private:
196
+ class Delegate : public NativeAirMapsModuleCxxSpecJSI {
197
+ public:
198
+ Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
199
+ NativeAirMapsModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
200
+
201
+ }
202
+
203
+ jsi::Value getCamera(jsi::Runtime &rt, double tag) override {
204
+ static_assert(
205
+ bridging::getParameterCount(&T::getCamera) == 2,
206
+ "Expected getCamera(...) to have 2 parameters");
207
+
208
+ return bridging::callFromJs<jsi::Value>(
209
+ rt, &T::getCamera, jsInvoker_, instance_, std::move(tag));
210
+ }
211
+ jsi::Value getMarkersFrames(jsi::Runtime &rt, double tag, bool onlyVisible) override {
212
+ static_assert(
213
+ bridging::getParameterCount(&T::getMarkersFrames) == 3,
214
+ "Expected getMarkersFrames(...) to have 3 parameters");
215
+
216
+ return bridging::callFromJs<jsi::Value>(
217
+ rt, &T::getMarkersFrames, jsInvoker_, instance_, std::move(tag), std::move(onlyVisible));
218
+ }
219
+ jsi::Value getMapBoundaries(jsi::Runtime &rt, double tag) override {
220
+ static_assert(
221
+ bridging::getParameterCount(&T::getMapBoundaries) == 2,
222
+ "Expected getMapBoundaries(...) to have 2 parameters");
223
+
224
+ return bridging::callFromJs<jsi::Value>(
225
+ rt, &T::getMapBoundaries, jsInvoker_, instance_, std::move(tag));
226
+ }
227
+ jsi::Value takeSnapshot(jsi::Runtime &rt, double tag, jsi::String config) override {
228
+ static_assert(
229
+ bridging::getParameterCount(&T::takeSnapshot) == 3,
230
+ "Expected takeSnapshot(...) to have 3 parameters");
231
+
232
+ return bridging::callFromJs<jsi::Value>(
233
+ rt, &T::takeSnapshot, jsInvoker_, instance_, std::move(tag), std::move(config));
234
+ }
235
+ jsi::Value getAddressFromCoordinates(jsi::Runtime &rt, double tag, jsi::Object coordinate) override {
236
+ static_assert(
237
+ bridging::getParameterCount(&T::getAddressFromCoordinates) == 3,
238
+ "Expected getAddressFromCoordinates(...) to have 3 parameters");
239
+
240
+ return bridging::callFromJs<jsi::Value>(
241
+ rt, &T::getAddressFromCoordinates, jsInvoker_, instance_, std::move(tag), std::move(coordinate));
242
+ }
243
+ jsi::Value getPointForCoordinate(jsi::Runtime &rt, double tag, jsi::Object coordinate) override {
244
+ static_assert(
245
+ bridging::getParameterCount(&T::getPointForCoordinate) == 3,
246
+ "Expected getPointForCoordinate(...) to have 3 parameters");
247
+
248
+ return bridging::callFromJs<jsi::Value>(
249
+ rt, &T::getPointForCoordinate, jsInvoker_, instance_, std::move(tag), std::move(coordinate));
250
+ }
251
+ jsi::Value getCoordinateForPoint(jsi::Runtime &rt, double tag, jsi::Object point) override {
252
+ static_assert(
253
+ bridging::getParameterCount(&T::getCoordinateForPoint) == 3,
254
+ "Expected getCoordinateForPoint(...) to have 3 parameters");
255
+
256
+ return bridging::callFromJs<jsi::Value>(
257
+ rt, &T::getCoordinateForPoint, jsInvoker_, instance_, std::move(tag), std::move(point));
258
+ }
259
+
260
+ private:
261
+ friend class NativeAirMapsModuleCxxSpec;
262
+ T *instance_;
263
+ };
264
+
265
+ Delegate delegate_;
266
+ };
267
+
268
+ } // namespace facebook::react
@@ -0,0 +1,34 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ version = "0.77.1"
7
+ source = { :git => 'https://github.com/facebook/react-native.git' }
8
+ if version == '1000.0.0'
9
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
10
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
11
+ else
12
+ source[:tag] = "v#{version}"
13
+ end
14
+
15
+ Pod::Spec.new do |s|
16
+ s.name = "ReactAppDependencyProvider"
17
+ s.version = version
18
+ s.summary = "The third party dependency provider for the app"
19
+ s.homepage = "https://reactnative.dev/"
20
+ s.documentation_url = "https://reactnative.dev/"
21
+ s.license = "MIT"
22
+ s.author = "Meta Platforms, Inc. and its affiliates"
23
+ s.platforms = min_supported_versions
24
+ s.source = source
25
+ s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
26
+
27
+ # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
+ s.pod_target_xcconfig = {
29
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
30
+ "DEFINES_MODULE" => "YES"
31
+ }
32
+
33
+ s.dependency "ReactCodegen"
34
+ end
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "1.21.0-alpha.112",
8
+ "version": "1.21.0-alpha.113",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -17,14 +17,13 @@
17
17
  "release": "semantic-release",
18
18
  "bundle-install": "cd example && bundle install",
19
19
  "pod-install": "cd example/ios && bundle exec pod install",
20
- "bootstrap": "yarn --cwd example && yarn && yarn bundle-install && yarn pod-install",
21
- "prepack": "node updateCodegenConfig.js"
20
+ "bootstrap": "yarn --cwd example && yarn && yarn bundle-install && yarn pod-install"
22
21
  },
23
22
  "files": [
24
- "specs",
25
23
  "lib",
26
24
  "android",
27
25
  "ios",
26
+ "react-native-maps-generated.podspec",
28
27
  "react-native-google-maps.podspec",
29
28
  "react-native-maps.podspec",
30
29
  "!android/build",
@@ -96,7 +95,12 @@
96
95
  "codegenConfig": {
97
96
  "name": "RNMapsSpecs",
98
97
  "type": "all",
99
- "jsSrcsDir": "./specs",
98
+ "jsSrcsDir": "./src/specs",
99
+ "outputDir": {
100
+ "ios": "ios/generated",
101
+ "android": "android/generated"
102
+ },
103
+ "includesGeneratedCode": true,
100
104
  "android": {
101
105
  "javaPackageName": "com.rnmaps.fabric"
102
106
  }
@@ -20,5 +20,6 @@ Pod::Spec.new do |s|
20
20
  s.compiler_flags = folly_compiler_flags + ' -DHAVE_GOOGLE_MAPS=1 -DHAVE_GOOGLE_MAPS_UTILS=1'
21
21
  s.dependency 'GoogleMaps', '9.3.0'
22
22
  s.dependency 'Google-Maps-iOS-Utils', '6.1.0'
23
+ s.dependency 'react-native-maps-generated'
23
24
  install_modules_dependencies(s)
24
25
  end
@@ -0,0 +1,31 @@
1
+ require 'json'
2
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
3
+
4
+ folly_config = get_folly_config()
5
+ folly_compiler_flags = folly_config[:compiler_flags]
6
+
7
+ Pod::Spec.new do |s|
8
+ s.name = "react-native-maps-generated"
9
+ s.version = package['version']
10
+ s.summary = package["description"]
11
+ s.authors = package["author"]
12
+ s.homepage = package["homepage"]
13
+ s.license = package["license"]
14
+ s.platform = :ios, "13.0"
15
+ s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
16
+ s.source_files = "ios/generated/**/*.{h,m,mm,cpp,swift}"
17
+ s.exclude_files = [
18
+ "ios/generated/RCTAppDependencyProvider.h",
19
+ "ios/generated/RCTAppDependencyProvider.mm",
20
+ "ios/generated/RCTThirdPartyComponentsProvider.h",
21
+ "ios/generated/RCTThirdPartyComponentsProvider.mm",
22
+ "ios/generated/RCTModulesConformingToProtocolsProvider.h",
23
+ "ios/generated/RCTModulesConformingToProtocolsProvider.mm",
24
+ ]
25
+ s.public_header_files = "ios/generated/**/*.h"
26
+ s.module_name = 'ReactNativeMapsGenerated'
27
+ s.dependency "React-Core"
28
+ s.compiler_flags = folly_compiler_flags
29
+ install_modules_dependencies(s)
30
+
31
+ end
@@ -17,6 +17,6 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/AirMaps/**/*.{h,m,mm,swift}"
18
18
  s.dependency "React-Core"
19
19
  s.compiler_flags = folly_compiler_flags
20
+ s.dependency 'react-native-maps-generated'
20
21
  install_modules_dependencies(s)
21
-
22
22
  end
@@ -1,36 +0,0 @@
1
- import type {TurboModule} from 'react-native';
2
- import {TurboModuleRegistry} from 'react-native';
3
- import type {Double} from 'react-native/Libraries/Types/CodegenTypes';
4
- import type {Camera} from './NativeComponentMapView';
5
- import {Address} from 'react-native-maps';
6
-
7
- type LatLng = {
8
- latitude: Double;
9
- longitude: Double;
10
- };
11
-
12
- type Point = Readonly<{
13
- x: Double; // Non-nullable Double for x
14
- y: Double; // Non-nullable Double for y
15
- }>;
16
-
17
- export type Region = Readonly<
18
- LatLng & {
19
- latitudeDelta: Double; // Non-nullable Double for latitudeDelta
20
- longitudeDelta: Double; // Non-nullable Double for longitudeDelta
21
- }
22
- >;
23
-
24
- export type MapBoundaries = {northEast: LatLng; southWest: LatLng};
25
-
26
- export interface Spec extends TurboModule {
27
- getCamera(tag: Double): Promise<Camera>;
28
- getMarkersFrames(tag: Double, onlyVisible: boolean): Promise<unknown>;
29
- getMapBoundaries(tag: Double): Promise<MapBoundaries>;
30
- takeSnapshot(tag: Double, config: string): Promise<string>;
31
- getAddressFromCoordinates(tag: Double, coordinate: LatLng): Promise<Address>;
32
- getPointForCoordinate(tag: Double, coordinate: LatLng): Promise<Point>;
33
- getCoordinateForPoint(tag: Double, point: Point): Promise<LatLng>;
34
- }
35
-
36
- export default TurboModuleRegistry.getEnforcing<Spec>('RNMapsAirModule');
@@ -1,63 +0,0 @@
1
- import type {HostComponent, ViewProps} 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 CalloutPressEvent = 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 CalloutFabricNativeProps extends ViewProps {
30
- /**
31
- * If `true`, clicks on transparent areas in callout will be passed to map.
32
- *
33
- * @default false
34
- * @platform iOS: Supported
35
- * @platform Android: Not supported
36
- */
37
- alphaHitTest?: boolean;
38
-
39
- /**
40
- * Callback that is called when the user presses on the callout
41
- *
42
- * @platform iOS: Apple Maps only
43
- * @platform Android: Supported
44
- */
45
- onPress?: CalloutPressEvent;
46
-
47
- /**
48
- * If `false`, a default "tooltip" bubble window will be drawn around this callouts children.
49
- * If `true`, the child views can fully customize their appearance, including any "bubble" like styles.
50
- *
51
- * @default false
52
- * @platform iOS: Supported
53
- * @platform Android: Supported
54
- */
55
- tooltip?: boolean;
56
- }
57
-
58
- export default codegenNativeComponent<CalloutFabricNativeProps>(
59
- 'RNMapsCallout',
60
- {
61
- excludedPlatforms: ['iOS'],
62
- },
63
- ) as HostComponent<CalloutFabricNativeProps>;
@@ -1,94 +0,0 @@
1
- import type {HostComponent, ViewProps, ColorValue} from 'react-native';
2
-
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
- import {
5
- Double,
6
- Float,
7
- BubblingEventHandler,
8
- } from 'react-native/Libraries/Types/CodegenTypes';
9
-
10
- export type LatLng = Readonly<{
11
- latitude: Double; // Non-nullable Double for latitude
12
- longitude: Double; // Non-nullable Double for longitude
13
- }>;
14
-
15
- export type CirclePressEventHandler = BubblingEventHandler<
16
- Readonly<{
17
- action?: string;
18
- id: string;
19
- coordinate: {
20
- latitude: Double; // Inlined LatLng
21
- longitude: Double;
22
- };
23
- position?: {
24
- x: Double; // Inlined Point
25
- y: Double;
26
- }; // Optional position for Android
27
- }>
28
- >;
29
-
30
- export interface CircleFabricNativeProps extends ViewProps {
31
- /**
32
- * The coordinates of the center of the circle.
33
- *
34
- * @platform iOS: Supported
35
- * @platform Android: Supported
36
- */
37
- center: LatLng;
38
-
39
- /**
40
- * The stroke color to use for the path.
41
- *
42
- * @default `#000`, `rgba(r,g,b,0.5)`
43
- * @platform iOS: Supported
44
- * @platform Android: Supported
45
- */
46
- fillColor?: ColorValue;
47
-
48
- /**
49
- * The radius of the circle to be drawn (in meters)
50
- *
51
- * @platform iOS: Supported
52
- * @platform Android: Supported
53
- */
54
- radius: Double;
55
-
56
- /**
57
- * The stroke color to use for the path.
58
- *
59
- * @default `#000`, `rgba(r,g,b,0.5)`
60
- * @platform iOS: Supported
61
- * @platform Android: Supported
62
- */
63
- strokeColor?: ColorValue;
64
-
65
- /**
66
- * Callback that is called when user taps on the map.
67
- *
68
- * @platform iOS: Supported
69
- * @platform Android: Supported
70
- */
71
- onPress?: CirclePressEventHandler;
72
-
73
- /**
74
- * The stroke width to use for the path.
75
- *
76
- * @default 1
77
- * @platform iOS: Supported
78
- * @platform Android: Supported
79
- */
80
- strokeWidth?: Float;
81
-
82
- /**
83
- * Boolean to allow a polygon to be tappable and use the onPress function.
84
- *
85
- * @platform iOS: Google Maps only
86
- * @platform Android: Supported
87
- */
88
- tappable?: boolean;
89
- }
90
-
91
- export default codegenNativeComponent<CircleFabricNativeProps>(
92
- 'RNMapsCircle',
93
- {},
94
- ) as HostComponent<CircleFabricNativeProps>;