react-native-maps 1.17.1 → 1.17.3
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
|
-
|
|
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
|
|
|
@@ -5,6 +5,7 @@ import android.view.View;
|
|
|
5
5
|
import androidx.annotation.NonNull;
|
|
6
6
|
import androidx.annotation.Nullable;
|
|
7
7
|
|
|
8
|
+
import com.facebook.react.R;
|
|
8
9
|
import com.facebook.react.bridge.Arguments;
|
|
9
10
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
10
11
|
import com.facebook.react.bridge.ReadableArray;
|
|
@@ -329,6 +330,11 @@ public class MapManager extends ViewGroupManager<MapView> {
|
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
|
|
333
|
+
@ReactProp(name = "accessibilityLabel")
|
|
334
|
+
public void setAccessibilityLabel(MapView view, @Nullable String accessibilityLabel) {
|
|
335
|
+
view.setTag(R.id.accessibility_label, accessibilityLabel);
|
|
336
|
+
}
|
|
337
|
+
|
|
332
338
|
@Override
|
|
333
339
|
public void receiveCommand(@NonNull MapView view, String commandId, @Nullable ReadableArray args) {
|
|
334
340
|
int duration;
|
|
@@ -7,6 +7,7 @@ import android.view.View;
|
|
|
7
7
|
import androidx.annotation.NonNull;
|
|
8
8
|
import androidx.annotation.Nullable;
|
|
9
9
|
|
|
10
|
+
import com.facebook.react.R;
|
|
10
11
|
import com.facebook.react.bridge.ReadableArray;
|
|
11
12
|
import com.facebook.react.bridge.ReadableMap;
|
|
12
13
|
import com.facebook.react.common.MapBuilder;
|
|
@@ -268,6 +269,11 @@ public class MapMarkerManager extends ViewGroupManager<MapMarker> {
|
|
|
268
269
|
view.setTracksViewChanges(tracksViewChanges);
|
|
269
270
|
}
|
|
270
271
|
|
|
272
|
+
@ReactProp(name = "accessibilityLabel")
|
|
273
|
+
public void setAccessibilityLabel(MapMarker view, @Nullable String accessibilityLabel) {
|
|
274
|
+
view.setTag(R.id.accessibility_label, accessibilityLabel);
|
|
275
|
+
}
|
|
276
|
+
|
|
271
277
|
@Override
|
|
272
278
|
public void addView(MapMarker parent, View child, int index) {
|
|
273
279
|
// if an <Callout /> component is a child, then it is a callout view, NOT part of the
|
package/lib/MapPolyline.d.ts
CHANGED
|
@@ -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.
|
|
8
|
+
"version": "1.17.3",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|