|
@ -9,25 +9,13 @@ import { |
|
|
|
|
|
|
|
|
import { MaterialCommunityIcons } from "@expo/vector-icons"; |
|
|
import { MaterialCommunityIcons } from "@expo/vector-icons"; |
|
|
import colors from "../config/colors"; |
|
|
import colors from "../config/colors"; |
|
|
import { dimensions } from "../config/dimensions"; |
|
|
|
|
|
|
|
|
import { dimensions, screen_height } from "../config/dimensions"; |
|
|
|
|
|
|
|
|
export default function LoadingMarkersModal({ show }) { |
|
|
export default function LoadingMarkersModal({ show }) { |
|
|
|
|
|
if (show) { |
|
|
return ( |
|
|
return ( |
|
|
<Modal |
|
|
|
|
|
transparent={true} |
|
|
|
|
|
animationType="slide" |
|
|
|
|
|
visible={show} |
|
|
|
|
|
supportedOrientations={["portrait"]} |
|
|
|
|
|
> |
|
|
|
|
|
<View |
|
|
|
|
|
style={{ |
|
|
|
|
|
justifyContent: "center", |
|
|
|
|
|
alignSelf: "center", |
|
|
|
|
|
width: "100%", |
|
|
|
|
|
height: "100%", |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<View style={styles.container}> |
|
|
|
|
|
|
|
|
// 267 = (tabBar height = 49) + (data menu btn height = 48) + (this modal = 170/2)
|
|
|
|
|
|
<View style={[styles.container, { bottom: (screen_height - 267) / 2 }]}> |
|
|
<MaterialCommunityIcons |
|
|
<MaterialCommunityIcons |
|
|
name="sync" |
|
|
name="sync" |
|
|
size={48} |
|
|
size={48} |
|
@ -38,13 +26,15 @@ export default function LoadingMarkersModal({ show }) { |
|
|
Aguarde um momento enquanto os dados são carregados |
|
|
Aguarde um momento enquanto os dados são carregados |
|
|
</Text> |
|
|
</Text> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
|
|
|
</Modal> |
|
|
|
|
|
); |
|
|
); |
|
|
|
|
|
} else { |
|
|
|
|
|
return <></>; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
const styles = StyleSheet.create({ |
|
|
container: { |
|
|
container: { |
|
|
|
|
|
position: "absolute", |
|
|
width: "80%", |
|
|
width: "80%", |
|
|
height: 170, |
|
|
height: 170, |
|
|
justifyContent: "center", |
|
|
justifyContent: "center", |
|
|