Created
January 10, 2018 14:47
-
-
Save zikosw/437988af0eb506ffe9411fb9b3905640 to your computer and use it in GitHub Desktop.
expo map marker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { MapView } from 'expo'; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<MapView | |
style={{ flex: 1 }} | |
initialRegion={{ | |
latitude: 37.78825, | |
longitude: -122.4324, | |
latitudeDelta: 0.0922, | |
longitudeDelta: 0.0421, | |
}} | |
> | |
<MapView.Marker | |
coordinate={{latitude: 37.73538, | |
longitude: -122.4324,}} | |
title={"marker.title"} | |
description={"desss"} | |
/> | |
</MapView> | |
); | |
} | |
} |
Thank you so much!
thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You save my day.
Thanks!