react-native-maps 1.29.3 → 1.29.4
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.
|
@@ -245,6 +245,10 @@ id regionAsJSON(MKCoordinateRegion region) {
|
|
|
245
245
|
#pragma clang diagnostic push
|
|
246
246
|
#pragma clang diagnostic ignored "-Wobjc-missing-super-calls"
|
|
247
247
|
- (void)insertReactSubview:(id<RCTComponent>)subview atIndex:(NSInteger)atIndex {
|
|
248
|
+
if (subview == nil) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
|
|
248
252
|
// Our desired API is to pass up markers/overlays as children to the mapview component.
|
|
249
253
|
// This is where we intercept them and do the appropriate underlying mapview action.
|
|
250
254
|
if ([subview isKindOfClass:[AIRGoogleMapMarker class]]) {
|
|
@@ -290,7 +294,9 @@ id regionAsJSON(MKCoordinateRegion region) {
|
|
|
290
294
|
[self insertReactSubview:(UIView *)childSubviews[i] atIndex:atIndex];
|
|
291
295
|
}
|
|
292
296
|
}
|
|
293
|
-
|
|
297
|
+
NSUInteger safeIndex = atIndex < 0 ? 0 : (NSUInteger)atIndex;
|
|
298
|
+
safeIndex = MIN(safeIndex, _reactSubviews.count);
|
|
299
|
+
[_reactSubviews insertObject:(UIView *)subview atIndex:safeIndex];
|
|
294
300
|
}
|
|
295
301
|
#pragma clang diagnostic pop
|
|
296
302
|
|
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.4",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint . --max-warnings 0",
|