react-native-maps 1.21.0-alpha.74 → 1.21.0-alpha.76
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/android/build.gradle +9 -3
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +6 -0
- package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +2 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +9 -9
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +2 -2
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.cpp +1 -0
- package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.h +1 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradlew +1 -2
- package/android/src/main/java/com/rnmaps/fabric/MapViewManager.java +10 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnDoublePressEvent.java +27 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnIndoorBuildingFocusedEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/fabric/event/OnIndoorLevelActivatedEvent.java +28 -0
- package/android/src/main/java/com/rnmaps/maps/MapView.java +25 -13
- package/ios/AirGoogleMaps/AIRGoogleMap.m +6 -6
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +44 -1
- package/ios/AirMaps/RNMapsMapView.mm +6 -1
- package/ios/AirMaps/RNMapsMarkerView.mm +27 -27
- package/ios/generated/RCTAppDependencyProvider.h +0 -25
- package/ios/generated/RCTAppDependencyProvider.mm +0 -55
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
- package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -26
- package/ios/generated/RNMapsSpecs/EventEmitters.cpp +9 -9
- package/ios/generated/RNMapsSpecs/EventEmitters.h +2 -2
- package/ios/generated/RNMapsSpecs/Props.cpp +1 -0
- package/ios/generated/RNMapsSpecs/Props.h +1 -0
- package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +42 -0
- package/lib/MapCircle.d.ts +1 -1
- package/lib/MapHeatmap.d.ts +2 -2
- package/lib/MapHeatmap.js +1 -1
- package/lib/MapMarker.d.ts +1 -1
- package/lib/MapPolygon.d.ts +1 -1
- package/lib/MapPolyline.d.ts +1 -1
- package/lib/MapView.d.ts +7 -5
- package/lib/MapView.js +16 -2
- package/lib/MapView.types.d.ts +1 -1
- package/lib/createFabricMap.d.ts +1 -0
- package/lib/createFabricMap.js +14 -1
- package/lib/specs/NativeComponentGoogleMapView.d.ts +3 -3
- package/lib/specs/NativeComponentGoogleMapView.js +1 -0
- package/lib/specs/NativeComponentMapView.d.ts +9 -0
- package/lib/specs/NativeComponentMapView.js +1 -0
- package/package.json +20 -20
package/lib/createFabricMap.js
CHANGED
|
@@ -154,6 +154,19 @@ const createFabricMap = (ViewComponent, Commands) => {
|
|
|
154
154
|
throw new Error('fitToCoordinates is only supported on iOS with Fabric.');
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
+
setIndoorActiveLevelIndex(activeLevelIndex) {
|
|
158
|
+
if (fabricRef.current) {
|
|
159
|
+
try {
|
|
160
|
+
Commands.setIndoorActiveLevelIndex(fabricRef.current, activeLevelIndex);
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
console.error('Failed to set camera:', error);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
console.warn('setIndoorActiveLevelIndex is not supported.');
|
|
168
|
+
}
|
|
169
|
+
},
|
|
157
170
|
setCamera(camera) {
|
|
158
171
|
if (fabricRef.current) {
|
|
159
172
|
try {
|
|
@@ -164,7 +177,7 @@ const createFabricMap = (ViewComponent, Commands) => {
|
|
|
164
177
|
}
|
|
165
178
|
}
|
|
166
179
|
else {
|
|
167
|
-
console.warn('setCamera is
|
|
180
|
+
console.warn('setCamera is not supported');
|
|
168
181
|
}
|
|
169
182
|
},
|
|
170
183
|
}));
|
|
@@ -133,7 +133,7 @@ export type IndoorLevel = Readonly<{
|
|
|
133
133
|
shortName: string;
|
|
134
134
|
}>;
|
|
135
135
|
export type IndoorLevelActivatedEventHandler = DirectEventHandler<Readonly<{
|
|
136
|
-
|
|
136
|
+
indoorLevel: {
|
|
137
137
|
activeLevelIndex: Int32;
|
|
138
138
|
name: string;
|
|
139
139
|
shortName: string;
|
|
@@ -145,7 +145,7 @@ export type IndoorBuilding = Readonly<{
|
|
|
145
145
|
levels: ReadonlyArray<IndoorLevel>;
|
|
146
146
|
}>;
|
|
147
147
|
export type IndoorBuildingEventHandler = DirectEventHandler<Readonly<{
|
|
148
|
-
|
|
148
|
+
indoorBuilding: {
|
|
149
149
|
underground: boolean;
|
|
150
150
|
activeLevelIndex: Int32;
|
|
151
151
|
};
|
|
@@ -609,7 +609,6 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
609
609
|
showsScale?: boolean;
|
|
610
610
|
/**
|
|
611
611
|
* A Boolean value indicating whether the map displays traffic information.
|
|
612
|
-
* TODO: Look into android support
|
|
613
612
|
*
|
|
614
613
|
* @default false
|
|
615
614
|
* @platform iOS: Supported
|
|
@@ -707,6 +706,7 @@ export interface NativeCommands {
|
|
|
707
706
|
fitToElements: (viewRef: React.ElementRef<React.ComponentType>, edgePaddingJSON: string, animated: boolean) => void;
|
|
708
707
|
fitToSuppliedMarkers: (viewRef: React.ElementRef<React.ComponentType>, markersJSON: string, edgePaddingJSON: string, animated: boolean) => void;
|
|
709
708
|
fitToCoordinates: (viewRef: React.ElementRef<React.ComponentType>, coordinatesJSON: string, edgePaddingJSON: string, animated: boolean) => void;
|
|
709
|
+
setIndoorActiveLevelIndex: (viewRef: React.ElementRef<React.ComponentType>, activeLevelIndex: Int32) => void;
|
|
710
710
|
}
|
|
711
711
|
export declare const Commands: NativeCommands;
|
|
712
712
|
declare const _default: HostComponent<MapFabricNativeProps>;
|
|
@@ -806,6 +806,14 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
806
806
|
* @platform Android: Supported
|
|
807
807
|
*/
|
|
808
808
|
zoomEnabled?: WithDefault<boolean, true>;
|
|
809
|
+
/**
|
|
810
|
+
* A Boolean value indicating whether the map displays traffic information.
|
|
811
|
+
*
|
|
812
|
+
* @default false
|
|
813
|
+
* @platform iOS: Google Maps only
|
|
814
|
+
* @platform Android: Supported
|
|
815
|
+
*/
|
|
816
|
+
showsTraffic?: boolean;
|
|
809
817
|
/**
|
|
810
818
|
* If `false` the user won't be able to double tap to zoom the map.
|
|
811
819
|
* **Note:** But it will greatly decrease delay of tap gesture recognition.
|
|
@@ -832,6 +840,7 @@ export interface NativeCommands {
|
|
|
832
840
|
fitToElements: (viewRef: React.ElementRef<React.ComponentType>, edgePaddingJSON: string, animated: boolean) => void;
|
|
833
841
|
fitToSuppliedMarkers: (viewRef: React.ElementRef<React.ComponentType>, markersJSON: string, edgePaddingJSON: string, animated: boolean) => void;
|
|
834
842
|
fitToCoordinates: (viewRef: React.ElementRef<React.ComponentType>, coordinatesJSON: string, edgePaddingJSON: string, animated: boolean) => void;
|
|
843
|
+
setIndoorActiveLevelIndex: (viewRef: React.ElementRef<React.ComponentType>, activeLevelIndex: Int32) => void;
|
|
835
844
|
}
|
|
836
845
|
export declare const Commands: NativeCommands;
|
|
837
846
|
declare const _default: HostComponent<MapFabricNativeProps>;
|
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.
|
|
8
|
+
"version": "1.21.0-alpha.76",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"mapkit"
|
|
45
45
|
],
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"react": ">=
|
|
48
|
-
"react-native": ">= 0.
|
|
47
|
+
"react": ">= 19.0.0",
|
|
48
|
+
"react-native": ">= 0.78.0",
|
|
49
49
|
"react-native-web": ">= 0.11"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
@@ -54,30 +54,30 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
+
"@babel/core": "^7.26.9",
|
|
58
|
+
"@babel/preset-env": "^7.26.9",
|
|
59
|
+
"@babel/runtime": "^7.26.9",
|
|
57
60
|
"@commitlint/cli": "17.6.1",
|
|
58
61
|
"@commitlint/config-conventional": "17.6.1",
|
|
62
|
+
"@react-native-community/cli": "15.1.3",
|
|
63
|
+
"@react-native/babel-preset": "0.78.0",
|
|
64
|
+
"@react-native/eslint-config": "0.78.0",
|
|
65
|
+
"@react-native/metro-config": "0.78.0",
|
|
66
|
+
"@react-native/typescript-config": "0.78.0",
|
|
59
67
|
"@semantic-release/changelog": "6.0.3",
|
|
60
68
|
"@semantic-release/git": "10.0.1",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"@types/react-native": "0.
|
|
64
|
-
"@
|
|
65
|
-
"@babel/preset-env": "^7.25.3",
|
|
66
|
-
"@babel/runtime": "^7.25.0",
|
|
67
|
-
"react-native": "^0.77.1",
|
|
68
|
-
"@react-native-community/cli": "15.0.1",
|
|
69
|
-
"react": "^18.3.1",
|
|
70
|
-
"@react-native/babel-preset": "0.77.1",
|
|
71
|
-
"@react-native/eslint-config": "0.77.1",
|
|
72
|
-
"@react-native/metro-config": "0.77.1",
|
|
73
|
-
"@react-native/typescript-config": "0.77.1",
|
|
74
|
-
"@types/react": "^18.2.6",
|
|
75
|
-
"@types/react-test-renderer": "^18.0.0",
|
|
69
|
+
"@types/jest": "29.5.14",
|
|
70
|
+
"@types/react": "^19.0.10",
|
|
71
|
+
"@types/react-native": "0.73.0",
|
|
72
|
+
"@types/react-test-renderer": "^19.0.0",
|
|
76
73
|
"eslint": "^8.19.0",
|
|
77
|
-
"
|
|
74
|
+
"husky": "8.0.3",
|
|
78
75
|
"jest": "^29.6.3",
|
|
79
76
|
"prettier": "2.8.8",
|
|
80
|
-
"react
|
|
77
|
+
"react": "^19.0.0",
|
|
78
|
+
"react-native": "^0.78.0",
|
|
79
|
+
"react-test-renderer": "19.0.0",
|
|
80
|
+
"semantic-release": "24.2.0",
|
|
81
81
|
"typescript": "5.0.4"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|