34 lines
841 B
JavaScript
34 lines
841 B
JavaScript
import React from 'react';
|
|
import {StyleSheet, View} from 'react-native';
|
|
import MapView, {PROVIDER_GOOGLE} from 'react-native-maps'; // remove PROVIDER_GOOGLE import if not using Google Maps
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
...StyleSheet.absoluteFillObject,
|
|
height: '100%',
|
|
width: '100%',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
map: {
|
|
...StyleSheet.absoluteFillObject,
|
|
height: '100%',
|
|
width: '100%',
|
|
},
|
|
});
|
|
|
|
const HouseLocation = () => (
|
|
<View style={styles.container}>
|
|
<MapView
|
|
provider={PROVIDER_GOOGLE} // remove if not using Google Maps
|
|
style={styles.map}
|
|
region={{
|
|
latitude: 37.78825,
|
|
longitude: -122.4324,
|
|
latitudeDelta: 0.015,
|
|
longitudeDelta: 0.0121,
|
|
}}
|
|
/>
|
|
</View>
|
|
);
|
|
export default HouseLocation;
|