We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64d42d8 commit 7a24e4dCopy full SHA for 7a24e4d
components/MapView.js
@@ -32,6 +32,11 @@ const MAP_TYPES = {
32
NONE: 'none',
33
};
34
35
+const GOOGLE_MAPS_ONLY_TYPES = [
36
+ MAP_TYPES.TERRAIN,
37
+ MAP_TYPES.NONE,
38
+];
39
+
40
const viewConfig = {
41
uiViewClassName: 'AIR<provider>Map',
42
validAttributes: {
@@ -568,6 +573,10 @@ class MapView extends React.Component {
568
573
onMapReady: this._onMapReady,
569
574
onLayout: this._onLayout,
570
575
576
+ if (Platform.OS === 'ios' && props.provider === ProviderConstants.PROVIDER_DEFAULT
577
+ && GOOGLE_MAPS_ONLY_TYPES.includes(props.mapType)) {
578
+ props.mapType = MAP_TYPES.standard;
579
+ }
571
580
props.handlePanDrag = !!props.onPanDrag;
572
581
} else {
582
props = {
0 commit comments