Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 53 additions & 4 deletions App/Component/Info.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { Component } from 'react';
import MapView, {Marker} from 'react-native-maps';



import {
Expand All @@ -9,13 +11,60 @@ import {
Image,
} from 'react-native';

const styles = StyleSheet.create({
mainContainer: {
flex: 1,
marginTop: 60,
flexDirection: 'column',
backgroundColor: 'transparent',
},

mapContainer:{
flex:1,
},

textContainer:{
flex:2,
},
marker: {
backgroundColor: "#550bbc",
padding: 5,
borderRadius: 5,
},
});

class Info extends Component{
render(){
return(
<View>
<Text>Texte</Text>


const markers = [
{
latitude: 48.8269986,
longitude: 2.3136804000000666,
title: 'Foo Place',
subtitle: '1234 Foo Drive'
}
];
return(
<View
style={styles.mainContainer}>
<MapView
style={styles.mapContainer}
initialRegion={{
latitude: 48.8269986,
longitude: 2.3136804000000666,
latitudeDelta: 0.002,
longitudeDelta: 0.001,
}}>
<Marker {...coordinate={
latitude: 48.8269986,
longitude: 2.3136804000000666,
}} >
<View style={styles.marker}>
<Text >MPAA</Text>
</View>
</Marker>
</MapView>
<Text style={styles.textContainer}> Bonjour </Text>
</View>

);
Expand Down