Skip to content

Instantly share code, notes, and snippets.

@zikosw
Created January 10, 2018 14:47
Show Gist options
  • Save zikosw/437988af0eb506ffe9411fb9b3905640 to your computer and use it in GitHub Desktop.
Save zikosw/437988af0eb506ffe9411fb9b3905640 to your computer and use it in GitHub Desktop.
expo map marker
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>
);
}
}
@hakast
Copy link

hakast commented Feb 27, 2019

Thank you, this helped me a lot.

@mendozaremi
Copy link

Thanks!

@younisrahman
Copy link

You save my day.
Thanks!

@seekersapp2013
Copy link

Thank you so much!

@ahmadrezatale
Copy link

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment