From dcd5c3ecc75a22a24e44ca5c1e33c18c417a38d9 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 19 Mar 2021 14:41:12 -0300 Subject: [PATCH] Switching MapMarker ballon to bottom sheet. --- src/app/components/MapMarker.js | 57 ++++++++------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/src/app/components/MapMarker.js b/src/app/components/MapMarker.js index 7b11afd..c1ea5a6 100644 --- a/src/app/components/MapMarker.js +++ b/src/app/components/MapMarker.js @@ -1,10 +1,8 @@ import React, { useState } from "react"; -import { View, StyleSheet, Image, Text } from "react-native"; -import MapView, { Callout } from "react-native-maps"; +import { View, StyleSheet, Image } from "react-native"; +import MapView from "react-native-maps"; import colors from "../config/colors"; -import assets from "../config/assets"; -import { dimensions, screen_height, screen_width } from "../config/dimensions"; -import { Svg, Image as ImageSvg } from "react-native-svg"; +import { dimensions } from "../config/dimensions"; import MapModal from "./MapModal"; const markerSize = 30; @@ -12,34 +10,23 @@ export default function MapMarker(props) { const [isModalVisible, setIsModalVisible] = useState(false); return ( - + setIsModalVisible(!isModalVisible)} + > - - - - setIsModalVisible(!isModalVisible)} - > - - - {props.title} - {props.description} - - - - + + ); } @@ -84,21 +71,3 @@ const styles = StyleSheet.create({ width: markerSize, }, }); - -/* - * NOTE: Code for displaying images inside MapMarker. Leaved here for possible - * future needs - * - * - * {pictures_s.length > 0 && ( - * - * - * - * )} - * - */