Skip to content

Commit

Permalink
fix exaple how to use component in android
Browse files Browse the repository at this point in the history
  • Loading branch information
enieber authored Aug 31, 2018
1 parent 918b0cc commit 4dbac4b
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,36 @@ region | Geolocation | - | OK | the initial region render map

import MapView from 'react-native-open-street-map';


render() {
<MapView
ref="map"
zoom={5}
multiTouchControls
style={{
flex: 1,
}}
region={this.state.region}
showsUserLocation
router: {
titleA: "The point A",
titleB: "The point B",
descriptionA: "Bank",
descriptionB: "Scholl",
coordinates: [
{
latitude: -15.806553,
longitude: -47.8891454,
},
{
latitude: -15.8202434,
longitude: -47.9045093,
}
],
}
/>
return (
<MapView
ref="map"
zoom={5}
multiTouchControls
style={{
flex: 1
}}
region={this.state.region}
showsUserLocation
router={{
titleA: "The point A",
titleB: "The point B",
descriptionA: "Bank",
descriptionB: "Scholl",
coordinates: [
{
latitude: -15.806553,
longitude: -47.8891454
},
{
latitude: -15.8202434,
longitude: -47.9045093
}
]
}}
/>
);
};

```

0 comments on commit 4dbac4b

Please sign in to comment.