react-native-maps 1.26.19 → 1.26.20
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.
|
@@ -95,6 +95,10 @@ id regionAsJSON(MKCoordinateRegion region) {
|
|
|
95
95
|
self = [super initWithOptions:options];
|
|
96
96
|
|
|
97
97
|
if (self) {
|
|
98
|
+
// Set paddingAdjustmentBehavior immediately to prevent Google Maps SDK default behavior
|
|
99
|
+
// from automatically adjusting padding based on safe area insets during initialization
|
|
100
|
+
self.paddingAdjustmentBehavior = kGMSMapViewPaddingAdjustmentBehaviorNever;
|
|
101
|
+
|
|
98
102
|
_reactSubviews = [NSMutableArray new];
|
|
99
103
|
_markers = [NSMutableArray array];
|
|
100
104
|
_polygons = [NSMutableArray array];
|
|
@@ -664,6 +664,20 @@ using namespace facebook::react;
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
+
if (oldViewProps.paddingAdjustmentBehavior != newViewProps.paddingAdjustmentBehavior){
|
|
668
|
+
switch (newViewProps.paddingAdjustmentBehavior) {
|
|
669
|
+
case RNMapsGoogleMapViewPaddingAdjustmentBehavior::Never:
|
|
670
|
+
_view.paddingAdjustmentBehavior = kGMSMapViewPaddingAdjustmentBehaviorNever;
|
|
671
|
+
break;
|
|
672
|
+
case RNMapsGoogleMapViewPaddingAdjustmentBehavior::Automatic:
|
|
673
|
+
_view.paddingAdjustmentBehavior = kGMSMapViewPaddingAdjustmentBehaviorAutomatic;
|
|
674
|
+
break;
|
|
675
|
+
case RNMapsGoogleMapViewPaddingAdjustmentBehavior::Always:
|
|
676
|
+
_view.paddingAdjustmentBehavior = kGMSMapViewPaddingAdjustmentBehaviorAlways;
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
667
681
|
|
|
668
682
|
[super updateProps:props oldProps:oldProps];
|
|
669
683
|
}
|
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.26.
|
|
10
|
+
"version": "1.26.20",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint . --max-warnings 0",
|