Is this a bug report?
Yes
Yes
Environment
Steps to Reproduce
I was using react-native-maps to display google maps in my app. The layout hirarchy was as below:
- CardView from 'react-native-cardview' ==> style={cardviewContainer}
|- View from 'react-native' ==> style={defaultContainerStyle}
|- View from 'react-native' ==> header
|- View from 'react-native' ==> style={mapContainer}
|- MapView from 'react-native-maps' [provider='google'] ==> style={map}
Styles:
mapContainer: {
marginLeft: -20,
marginRight: -20,
marginTop: 20,
marginBottom: -20,
height: 300,
}
map: {
...StyleSheet.absoluteFillObject,
}
defaultContainerStyle: {
padding: 20,
paddingTop: 25,
paddingBottom: 25,
}
cardviewContainer: {
backgroundColor: '#fff',
marginLeft: -2,
marginRight: -2,
marginBottom: 10,
}
With above components and their cards map was rendering within required area.
But, when I changed same above configuration with below, the OSM map accoupies whole CardView area. Here the problem is the Card header is not displayed/overlapped by map.
- CardView from 'react-native-cardview' ==> style={cardviewContainer}
|- View from 'react-native' ==> style={defaultContainerStyle}
|- View from 'react-native' ==> header
|- View from 'react-native' ==> style={mapContainer}
|- MapView from 'react-native-maps-osmdroid' [provider=PROVIDER_OSMDROID] ==> style={map}
-
-
Expected Behavior

Actual Behavior
"Some header" and Icon is overlapped here.

Reproducible Demo
SampleGoogleMapApp.zip

SampleOSMDroidMapApp.zip

Is this a bug report?
Yes
Have you read the Installation Instructions?
Yes
Environment
Steps to Reproduce
I was using react-native-maps to display google maps in my app. The layout hirarchy was as below:
|- View from 'react-native' ==> style={defaultContainerStyle}
|- View from 'react-native' ==> header
|- View from 'react-native' ==> style={mapContainer}
|- MapView from 'react-native-maps' [provider='google'] ==> style={map}
Styles:
mapContainer: {
marginLeft: -20,
marginRight: -20,
marginTop: 20,
marginBottom: -20,
height: 300,
}
map: {
...StyleSheet.absoluteFillObject,
}
defaultContainerStyle: {
padding: 20,
paddingTop: 25,
paddingBottom: 25,
}
cardviewContainer: {
backgroundColor: '#fff',
marginLeft: -2,
marginRight: -2,
marginBottom: 10,
}
With above components and their cards map was rendering within required area.
But, when I changed same above configuration with below, the OSM map accoupies whole CardView area. Here the problem is the Card header is not displayed/overlapped by map.
|- View from 'react-native' ==> style={defaultContainerStyle}
|- View from 'react-native' ==> header
|- View from 'react-native' ==> style={mapContainer}
|- MapView from 'react-native-maps-osmdroid' [provider=PROVIDER_OSMDROID] ==> style={map}
Expected Behavior
Actual Behavior
"Some header" and Icon is overlapped here.

Reproducible Demo
SampleGoogleMapApp.zip

SampleOSMDroidMapApp.zip
