react-native-maps 1.29.1 → 1.29.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/ios/AirMaps/AIRMap.mm
CHANGED
|
@@ -157,7 +157,10 @@ const NSInteger AIRMapMaxZoomLevel = 20;
|
|
|
157
157
|
[self insertReactSubview:(UIView *)childSubviews[i] atIndex:atIndex];
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
if (subview != nil) {
|
|
161
|
+
NSUInteger safeIndex = MIN((NSUInteger)atIndex, _reactSubviews.count);
|
|
162
|
+
[_reactSubviews insertObject:(UIView *)subview atIndex:safeIndex];
|
|
163
|
+
}
|
|
161
164
|
}
|
|
162
165
|
#pragma clang diagnostic pop
|
|
163
166
|
|
|
@@ -425,9 +425,9 @@ NSInteger const AIR_CALLOUT_OPEN_ZINDEX_BASELINE = 999;
|
|
|
425
425
|
CGRect reactFrame = self.frame;
|
|
426
426
|
|
|
427
427
|
UIView *firstSubView = self.subviews.firstObject;
|
|
428
|
-
if (firstSubView && (CGRectGetWidth(firstSubView.
|
|
429
|
-
CGRectGetHeight(firstSubView.
|
|
430
|
-
reactFrame = firstSubView.
|
|
428
|
+
if (firstSubView && (CGRectGetWidth(firstSubView.bounds) > CGRectGetWidth(reactFrame) ||
|
|
429
|
+
CGRectGetHeight(firstSubView.bounds) > CGRectGetHeight(reactFrame))) {
|
|
430
|
+
reactFrame.size = firstSubView.bounds.size;
|
|
431
431
|
}
|
|
432
432
|
[self reactSetFrame:reactFrame];
|
|
433
433
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
8
8
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
9
9
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
10
|
-
"version": "1.29.
|
|
10
|
+
"version": "1.29.3",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint . --max-warnings 0",
|