import React from "react"; import { StyleSheet, View } from "react-native"; import MapView from "react-native-maps"; import colors from "../config/colors"; import useLocation from "../hooks/useLocation"; import useMarkers from "../hooks/selectFromDB"; import MapMarker from "../components/MapMarker"; function MapFeedScreen(props) { const location = useLocation({ latitude: -22.1070263, longitude: -51.3948396, }); const markers = useMarkers(); return ( {[...markers.markers].map(({ ID, ...val }) => { return ; })} ); } const styles = StyleSheet.create({ container: { backgroundColor: colors.black, flex: 1, }, mapStyle: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, }, }); export default MapFeedScreen;