react-native-maps 1.17.0 → 1.17.2

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.
package/README.md CHANGED
@@ -14,7 +14,10 @@ See [Setup Instructions for the Included Example Project](docs/examples-setup.md
14
14
 
15
15
  ## Compatibility
16
16
 
17
- `react-native-maps` requires `react-native >= 0.64.3`.
17
+ ## React-Native Requirements
18
+
19
+ - **Version 1.14.0 and above**: Requires `react-native >= 0.74`.
20
+ - **Versions below 1.14.0**: Require `react-native >= 0.64.3`.
18
21
 
19
22
  ## Component API
20
23
 
@@ -264,12 +264,17 @@ NSInteger const AIR_CALLOUT_OPEN_ZINDEX_BASELINE = 999;
264
264
  }
265
265
 
266
266
  // the actual marker got clicked
267
+ CGPoint touchPointReal = [recognizer locationInView:self.calloutView];
267
268
  id event = @{
268
269
  @"action": @"marker-press",
269
270
  @"id": marker.identifier ?: @"unknown",
270
271
  @"coordinate": @{
271
272
  @"latitude": @(marker.coordinate.latitude),
272
273
  @"longitude": @(marker.coordinate.longitude)
274
+ },
275
+ @"point": @{
276
+ @"x": @(touchPointReal.x),
277
+ @"y": @(touchPointReal.y),
273
278
  }
274
279
  };
275
280
 
@@ -139,7 +139,7 @@ export declare class MapPolyline extends React.Component<MapPolylineProps> {
139
139
  }
140
140
  declare const _default: typeof MapPolyline;
141
141
  export default _default;
142
- type PolylinePressEvent = NativeSyntheticEvent<{
142
+ export type PolylinePressEvent = NativeSyntheticEvent<{
143
143
  action: 'polyline-press';
144
144
  /**
145
145
  * @platform iOS: Google Maps
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.17.0",
8
+ "version": "1.17.2",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",