import { Image, StyleSheet, Text, View } from 'react-native'; import React, { useContext } from 'react'; import MapView, { Marker, PROVIDER_DEFAULT} from 'react-native-maps'; import { UserLocationContext } from '@/app/context/UserLocationContext'; import MarkerList from '../mapView/MarkerList'; const MapViewScreen = ({placeList}) => { const {location, setLocation} = useContext(UserLocationContext) return location?.latitude &&( {location? : null} {placeList && placeList.map((item, index) => ( ))} ) } export default MapViewScreen const styles = StyleSheet.create({})