import * as React from 'react'; import { useState } from 'react'; import MapView, { Marker } from 'react-native-maps'; import { Button, StyleSheet, Text, View, Dimensions, Pressable } from 'react-native'; export default function Map({route, navigation} ) { const { Appointment = route.params.Appointment_Date , int_id = route.params.int_id, mapflag = route.params.Flag } = route.params console.log('In map params') console.log(route.params) const [pin, setPin] = React.useState({ latitude: 18.4655, longitude: -66.1057, }) return ( { setPin({ latitude: e.nativeEvent.coordinate.latitude, longitude: e.nativeEvent.coordinate.longitude })}} provider="google" >