react-native-maps 1.23.3 → 1.23.5
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/package.json +1 -3
- package/plugin/build/ios.js +2 -2
- package/src/AnimatedRegion.ts +2 -0
- package/src/MapView.tsx +1 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
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.23.
|
|
8
|
+
"version": "1.23.5",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
"ios",
|
|
26
26
|
"app.plugin.js",
|
|
27
27
|
"plugin/build",
|
|
28
|
-
"react-native-maps-generated.podspec",
|
|
29
|
-
"react-native-google-maps.podspec",
|
|
30
28
|
"react-native-maps.podspec",
|
|
31
29
|
"react-native.config.js",
|
|
32
30
|
"!android/build",
|
package/plugin/build/ios.js
CHANGED
|
@@ -111,14 +111,14 @@ function removeGoogleMapsAppDelegateInit(src) {
|
|
|
111
111
|
exports.removeGoogleMapsAppDelegateInit = removeGoogleMapsAppDelegateInit;
|
|
112
112
|
/**
|
|
113
113
|
* @param src The contents of the Podfile.
|
|
114
|
+
* @param useGoogleMaps if GoogleMaps for iOS is used
|
|
114
115
|
* @returns Podfile with react-native-maps integration configured.
|
|
115
116
|
*/
|
|
116
117
|
function addMapsCocoapods(src, useGoogleMaps) {
|
|
117
118
|
var newSrc = ' rn_maps_path = File.dirname(`node --print "require.resolve(\'react-native-maps/package.json\')"`) \n';
|
|
118
119
|
if (useGoogleMaps) {
|
|
119
|
-
newSrc += " pod 'react-native-
|
|
120
|
+
newSrc += " pod 'react-native-maps/Google', :path => rn_maps_path \n";
|
|
120
121
|
}
|
|
121
|
-
newSrc += " pod 'react-native-maps-generated', :path => rn_maps_path \n";
|
|
122
122
|
return (0, generateCode_1.mergeContents)({
|
|
123
123
|
tag: 'react-native-maps',
|
|
124
124
|
src: src,
|
package/src/AnimatedRegion.ts
CHANGED
|
@@ -89,6 +89,7 @@ export default class AnimatedMapRegion extends AnimatedWithChildren {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
// @ts-ignore
|
|
92
93
|
private __attach() {
|
|
93
94
|
this.latitude.__addChild(this);
|
|
94
95
|
this.longitude.__addChild(this);
|
|
@@ -96,6 +97,7 @@ export default class AnimatedMapRegion extends AnimatedWithChildren {
|
|
|
96
97
|
this.longitudeDelta.__addChild(this);
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
// @ts-ignore
|
|
99
101
|
private __detach() {
|
|
100
102
|
this.latitude.__removeChild(this);
|
|
101
103
|
this.longitude.__removeChild(this);
|