import React from 'react'; import { StyleSheet, View, Text, Dimensions, ScrollView, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.0922; const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO; class StaticMap extends React.Component { constructor(props) { super(props); this.state = { region: { latitude: LATITUDE, longitude: LONGITUDE, latitudeDelta: LATITUDE_DELTA, longitudeDelta: LONGITUDE_DELTA, }, }; } render() { return ( Clicking and dragging the map will cause the parent ScrollView to scroll. When using a Google Map this only works if you disable: scroll, zoom, pitch, rotate. ... It would be nice to have an option that still allows zooming. ); } } StaticMap.propTypes = { provider: MapView.ProviderPropType, }; const styles = StyleSheet.create({ container: { ...StyleSheet.absoluteFillObject, justifyContent: 'flex-end', alignItems: 'center', }, scrollview: { alignItems: 'center', paddingVertical: 40, }, map: { width: 250, height: 250, }, }); module.exports = StaticMap;