-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
66 lines (63 loc) · 1.63 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View, ImageBackground } from "react-native";
import wallpaper from "./assets/images/wallpaper.webp";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
export default function App() {
return (
<ImageBackground source={wallpaper} style={styles.container}>
<View style={styles.header}>
<Ionicons name="ios-lock-closed" size={20} color="white" />
<Text style={styles.date}>Friday 30 September</Text>
<Text style={styles.time}>15:26</Text>
</View>
{/* Notification List */}
<View style={styles.footer}>
<View style={styles.icon}>
<MaterialCommunityIcons name="flashlight" size={24} color="white" />
</View>
<View style={styles.icon}>
<Ionicons name="ios-camera" size={24} color="white" />
</View>
</View>
<StatusBar style="auto" />
</ImageBackground>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "stretch",
},
header: {
alignItems: "center",
justifyContent: "center",
height: 250,
},
date: {
fontSize: 20,
fontWeight: "500",
color: "#C3FFFE",
marginTop: 20,
},
time: {
fontSize: 82,
fontWeight: "bold",
color: "#C3FFFE",
},
footer: {
flexDirection: "row",
justifyContent: "space-between",
marginTop: "auto",
paddingVertical: 10,
paddingHorizontal: 30,
height: 75,
},
icon: {
backgroundColor: "#00000050",
width: 50,
aspectRatio: 1,
alignItems: "center",
justifyContent: "center",
borderRadius: 50,
},
});