|
@ -5,6 +5,7 @@ import attachFocusToQuery from "../hooks/useFocus"; |
|
|
import HeaderBarMenu from "../components/HeaderBarMenu"; |
|
|
import HeaderBarMenu from "../components/HeaderBarMenu"; |
|
|
import useSocketMarkers from "../hooks/useSocketMarkers"; |
|
|
import useSocketMarkers from "../hooks/useSocketMarkers"; |
|
|
import LoadingMarkersModal from "../components/LoadingMarkersModal"; |
|
|
import LoadingMarkersModal from "../components/LoadingMarkersModal"; |
|
|
|
|
|
import NoGPSError from "../components/NoGPSError"; |
|
|
|
|
|
|
|
|
export default function MapFeedScreen(props) { |
|
|
export default function MapFeedScreen(props) { |
|
|
HeaderBarMenu(props.navigation); |
|
|
HeaderBarMenu(props.navigation); |
|
@ -28,7 +29,7 @@ export default function MapFeedScreen(props) { |
|
|
|
|
|
|
|
|
// console.log("location: " + JSON.stringify(global.location))
|
|
|
// console.log("location: " + JSON.stringify(global.location))
|
|
|
return ( |
|
|
return ( |
|
|
(global.location) ? ( |
|
|
|
|
|
|
|
|
(!global.location) ? ( |
|
|
<View style={styles.container}> |
|
|
<View style={styles.container}> |
|
|
<OpenStreetMap |
|
|
<OpenStreetMap |
|
|
markers={markers} |
|
|
markers={markers} |
|
@ -40,9 +41,7 @@ export default function MapFeedScreen(props) { |
|
|
show={markers.markers.size <= 0}/> |
|
|
show={markers.markers.size <= 0}/> |
|
|
</View> |
|
|
</View> |
|
|
):( |
|
|
):( |
|
|
<View> |
|
|
|
|
|
<Text>Apresentar um erro no futuro</Text> |
|
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
<NoGPSError/> |
|
|
) |
|
|
) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|