-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathHome.js
78 lines (73 loc) · 1.78 KB
/
Home.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
67
68
69
70
71
72
73
74
75
76
77
78
import React from "react";
import {
StyleSheet,
Text,
View,
Image,
Button,
ActivityIndicator
} from "react-native";
import Questions from "./Questions";
import { Link } from "react-router-native";
import { Ionicons } from "@expo/vector-icons";
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Image
source={require("../assets/logo.png")}
style={{ width: 200, height: 85 }}
/>
<Text style={styles.welcome}>YOUR ALL FAVORITE QUIZ APP</Text>
<Text style={styles.paragraph}>
eQuiz fetches 10 questions from an open API and asks you question one
by one. You've to answer all the qeustions to understand your IQ
level.
</Text>
<Link to={`Questions`} style={styles.button} underlayColor="#f0f4f7">
<View style={{ display: "flex", flexDirection: "row" }}>
<Ionicons name="md-play" size={32} color="white" />
<Text
style={{
color: "white",
fontWeight: "bold",
marginLeft: 10,
marginTop: 5
}}
>
Start Questions
</Text>
</View>
</Link>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
},
welcome: {
fontSize: 22,
fontWeight: "bold",
backgroundColor: "#3498db",
color: "white",
padding: 10
},
button: {
backgroundColor: "#3498db",
padding: 10,
borderRadius: 10
},
paragraph: {
fontSize: 16,
color: "#777",
textAlign: "center",
padding: 10,
marginTop: 15,
lineHeight: 25
}
});