mirror of
https://github.com/RamonGebben/getmehigh-native.git
synced 2026-03-10 08:41:24 +00:00
everything now
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-library android:name="com.google.android.maps" />
|
||||
<meta-data
|
||||
android:name="com.google.android.geo.API_KEY"
|
||||
android:value="AIzaSyBGlSH0Z44rw4fniavK7IXXIAoSRYYu5G4"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native');
|
||||
var RNGMap = require('react-native-gmaps');
|
||||
var {
|
||||
AppRegistry,
|
||||
StyleSheet,
|
||||
@@ -87,6 +88,28 @@ var getMeHighMobile = React.createClass({
|
||||
<Text>location: {JSON.stringify(this.state.lastPosition)}</Text>
|
||||
<Text>TheOne: {JSON.stringify(this.state.theOne)}</Text>
|
||||
{gmhButton}
|
||||
<RNGMap
|
||||
ref={'gmap'}
|
||||
style={ { height: 500, width: 500 } }
|
||||
markers={ [
|
||||
{ coordinates: {lng: 0.1, lat: 51.0} },
|
||||
{
|
||||
coordinates: {lng: -0.1, lat: 51.0},
|
||||
title: "Click marker to see this title!",
|
||||
snippet: "Subtitle",
|
||||
id: 0,
|
||||
color: 120,
|
||||
}
|
||||
] }
|
||||
zoomLevel={10}
|
||||
onMapChange={(e) => console.log(e)}
|
||||
onMapError={(e) => console.log('Map error --> ', e)}
|
||||
center={ { lng: 0.1, lat: 51.0 } }
|
||||
/*
|
||||
* clickMarker shows Info Window of Marker with id: 0,
|
||||
* hides Info Window if given null
|
||||
*/
|
||||
clickMarker={0}/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user