react-native-maps 1.20.1 → 1.21.0-alpha.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 +13 -6
- package/ios/AirMaps/AIRMap.h +2 -1
- package/ios/AirMaps/AIRMap.m +1 -1
- package/ios/AirMaps/AIRMapManager.m +18 -18
- package/ios/AirMaps/AIRMapMarker.m +11 -3
- package/ios/AirMaps/RCTConvert+AirMap.h +2 -1
- package/ios/AirMaps/RCTConvert+AirMap.m +16 -0
- package/ios/AirMaps/RNMapsAirModule.h +13 -0
- package/ios/AirMaps/RNMapsAirModule.mm +280 -0
- package/ios/AirMaps/RNMapsMapView.h +21 -0
- package/ios/AirMaps/RNMapsMapView.mm +548 -0
- package/ios/AirMaps/RNMapsMapViewManager.mm +24 -0
- package/ios/AirMaps.xcodeproj/project.pbxproj +10 -0
- package/lib/FabricMapView.d.ts +22 -0
- package/lib/FabricMapView.js +175 -0
- package/lib/MapView.d.ts +6 -2
- package/lib/MapView.js +144 -71
- package/lib/specs/NativeAirMapsModule.d.ts +31 -0
- package/lib/specs/NativeAirMapsModule.js +4 -0
- package/lib/specs/NativeComponentMapView.d.ts +862 -0
- package/lib/specs/NativeComponentMapView.js +21 -0
- package/package.json +6 -2
- package/react-native-maps.podspec +3 -1
- package/react-native-google-maps.podspec +0 -25
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Commands = void 0;
|
|
7
|
+
const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
+
const codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
9
|
+
exports.Commands = (0, codegenNativeCommands_1.default)({
|
|
10
|
+
supportedCommands: [
|
|
11
|
+
'animateToRegion',
|
|
12
|
+
'setCamera',
|
|
13
|
+
'animateCamera',
|
|
14
|
+
'fitToElements',
|
|
15
|
+
'fitToSuppliedMarkers',
|
|
16
|
+
'fitToCoordinates',
|
|
17
|
+
],
|
|
18
|
+
});
|
|
19
|
+
exports.default = (0, codegenNativeComponent_1.default)('RNMapsMapView', {
|
|
20
|
+
excludedPlatforms: ['android'],
|
|
21
|
+
});
|
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.
|
|
8
|
+
"version": "1.21.0-alpha.2",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"lib",
|
|
24
24
|
"android",
|
|
25
25
|
"ios",
|
|
26
|
-
"react-native-google-maps.podspec",
|
|
27
26
|
"react-native-maps.podspec",
|
|
28
27
|
"!android/build",
|
|
29
28
|
"!ios/build",
|
|
@@ -91,6 +90,11 @@
|
|
|
91
90
|
"e2e"
|
|
92
91
|
]
|
|
93
92
|
},
|
|
93
|
+
"codegenConfig": {
|
|
94
|
+
"name": "RNMapsSpecs",
|
|
95
|
+
"type": "all",
|
|
96
|
+
"jsSrcsDir": "./src/specs"
|
|
97
|
+
},
|
|
94
98
|
"engines": {
|
|
95
99
|
"node": ">=18"
|
|
96
100
|
}
|
|
@@ -12,9 +12,11 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.platform = :ios, "11.0"
|
|
13
13
|
|
|
14
14
|
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
15
|
-
s.source_files = "ios/AirMaps/**/*.{h,m}"
|
|
15
|
+
s.source_files = "ios/AirMaps/**/*.{h,m,mm,swift}"
|
|
16
16
|
s.resource_bundles = {
|
|
17
17
|
'ReactNativeMapsPrivacy' => ['ios/PrivacyInfo.xcprivacy']
|
|
18
18
|
}
|
|
19
19
|
s.dependency 'React-Core'
|
|
20
|
+
|
|
21
|
+
install_modules_dependencies(s)
|
|
20
22
|
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
-
|
|
5
|
-
Pod::Spec.new do |s|
|
|
6
|
-
s.name = "react-native-google-maps"
|
|
7
|
-
s.version = package['version']
|
|
8
|
-
s.summary = package["description"]
|
|
9
|
-
s.authors = package["author"]
|
|
10
|
-
s.homepage = package["homepage"]
|
|
11
|
-
s.license = package["license"]
|
|
12
|
-
s.platform = :ios, "14"
|
|
13
|
-
|
|
14
|
-
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
|
|
15
|
-
s.source_files = "ios/AirGoogleMaps/**/*.{h,m}"
|
|
16
|
-
s.resource_bundles = {
|
|
17
|
-
'GoogleMapsPrivacy' => ['ios/AirGoogleMaps/Resources/GoogleMapsPrivacy.bundle']
|
|
18
|
-
}
|
|
19
|
-
s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-DHAVE_GOOGLE_MAPS_UTILS=1'
|
|
20
|
-
s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-maps"' }
|
|
21
|
-
|
|
22
|
-
s.dependency 'React-Core'
|
|
23
|
-
s.dependency 'GoogleMaps', '8.4.0'
|
|
24
|
-
s.dependency 'Google-Maps-iOS-Utils', '5.0.0'
|
|
25
|
-
end
|