GabrielTrettel
3 years ago
2 changed files with 68 additions and 54 deletions
@ -0,0 +1,64 @@ |
|||||
|
import React from "react"; |
||||
|
import { |
||||
|
Modal, |
||||
|
StyleSheet, |
||||
|
Text, |
||||
|
TouchableHighlight, |
||||
|
View, |
||||
|
} from "react-native"; |
||||
|
|
||||
|
import { MaterialCommunityIcons } from "@expo/vector-icons"; |
||||
|
import colors from "../config/colors"; |
||||
|
import { dimensions } from "../config/dimensions"; |
||||
|
|
||||
|
export default function LoadingMarkersModal({ show }) { |
||||
|
return ( |
||||
|
<Modal |
||||
|
transparent={true} |
||||
|
animationType="slide" |
||||
|
visible={show} |
||||
|
supportedOrientations={["portrait"]} |
||||
|
> |
||||
|
<View |
||||
|
style={{ |
||||
|
justifyContent: "center", |
||||
|
alignSelf: "center", |
||||
|
width: "100%", |
||||
|
height: "100%", |
||||
|
}} |
||||
|
> |
||||
|
<View style={styles.container}> |
||||
|
<MaterialCommunityIcons |
||||
|
name="sync" |
||||
|
size={48} |
||||
|
color={colors.primary} |
||||
|
style={{ alignSelf: "center", marginBottom: 12 }} |
||||
|
/> |
||||
|
<Text style={styles.text}> |
||||
|
Aguarde um momento enquanto os dados são carregados |
||||
|
</Text> |
||||
|
</View> |
||||
|
</View> |
||||
|
</Modal> |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
const styles = StyleSheet.create({ |
||||
|
container: { |
||||
|
width: "80%", |
||||
|
height: 170, |
||||
|
justifyContent: "center", |
||||
|
alignSelf: "center", |
||||
|
backgroundColor: colors.lightestGray, |
||||
|
borderColor: colors.primary, |
||||
|
borderWidth: 2, |
||||
|
borderRadius: 12, |
||||
|
padding: 12, |
||||
|
}, |
||||
|
text: { |
||||
|
fontSize: dimensions.text.secondary, |
||||
|
textAlign: "center", |
||||
|
color: colors.primary, |
||||
|
fontWeight: "bold", |
||||
|
}, |
||||
|
}); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue