-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMap.js
35 lines (31 loc) · 814 Bytes
/
Map.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import {
StyleSheet,
} from 'react-native';
import MapView from 'react-native-maps';
import Colors from '../constants/Colors';
// See: https://github.com/react-native-community/react-native-maps
export default class Map extends React.Component {
render() {
return (
<MapView
style={[styles.map, this.props.style]}
initialRegion={{
latitude: 42.387,
longitude: -71.0995,
latitudeDelta: 0.05,
longitudeDelta: 0.04,
}}
/>
);
}
}
const styles = StyleSheet.create({
map: {
borderColor: Colors.borderColor,
borderWidth: 1,
flex: 1,
height: 300,
margin: 5
}
});