Skip to content

Instantly share code, notes, and snippets.

@seekersapp2013
Forked from zikosw/map.js
Created April 16, 2020 04:56
Show Gist options
  • Select an option

  • Save seekersapp2013/e0a88c575503ca19f03a17cfcc34db33 to your computer and use it in GitHub Desktop.

Select an option

Save seekersapp2013/e0a88c575503ca19f03a17cfcc34db33 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>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment