-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (32 loc) · 651 Bytes
/
App.js
File metadata and controls
34 lines (32 loc) · 651 Bytes
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet
} from 'react-native';
import MapView from 'react-native-maps';
export default class App extends Component<{}> {
render() {
return (
<MapView
provider="google"
style={StyleSheet.absoluteFillObject}
>
<MapView.Marker
title="Greenwich"
coordinate={{
latitude: 51.48,
longitude: 0
}}
calloutOffset={{
x: -50,
y: -50
}}
/>
</MapView>
);
}
}