-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirstScreen.js
112 lines (107 loc) · 2.93 KB
/
FirstScreen.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import {
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
ScrollView,
} from "react-native";
import { useCallback, useEffect, useState } from "react";
import Icon from "react-native-vector-icons/AntDesign";
import { useNavigation } from "@react-navigation/native";
import * as Font from "expo-font";
import { Video } from "expo-av";
import { auth, db } from "./firebase/firebase";
const FirstScreen = () => {
const [fontLoaded, setFontLoaded] = useState(false);
const navigation = useNavigation();
const loadFonts = async () => {
await Font.loadAsync({
"custom-font": require("./assets/fonts/DroidSerif.ttf"),
});
setFontLoaded(true);
};
if (!fontLoaded) {
loadFonts();
return null;
}
return (
<ScrollView
style={{
flex: 1,
backgroundColor: "white",
paddingBottom: 100,
backgroundColor: "#02529c",
}}
>
<Text
style={{
fontWeight: "bold",
marginBottom: 5,
color: "white",
marginTop: 5,
textAlign: "center",
fontSize: 20,
fontFamily: "custom-font",
}}
>
{` Welcome ${auth.currentUser.displayName}`}
</Text>
<View style={{ alignItems: "center", paddingTop: 10, paddingBottom: 40 }}>
<Image
style={{ borderRadius: 7, width: 350, height: 120 }}
source={require("./assets/rotary-club-logo-1.jpeg")}
/>
</View>
<View
style={{ paddingHorizontal: 40, paddingTop: 10, alignItems: "center" }}
>
<Text
style={{
fontSize: 20,
textAlign: "justify",
color: "white",
fontFamily: "custom-font",
}}
>
Rotary International is the most territorial organisation in the
world. It exists in 184 different countries and territories and cuts
across dozens of languages, political and social structures, customs,
religions and traditions. How is it that all of the more than 25,500
Rotary Clubs of the world operate in almost identical style? The
primary answer is the Standard Rotary Club Constitution.
</Text>
<Video
source={require("./assets/rotaryVideo.mp4")}
style={{
width: 300,
height: 200,
marginTop: 28,
left: 22,
}} // Set the dimensions of your video
useNativeControls={true} // Show the built-in playback controls
shouldPlay={true}
/>
</View>
</ScrollView>
);
};
export default FirstScreen;
const styles = StyleSheet.create({
button: {
backgroundColor: "#0782F9",
width: 60,
height: 60,
padding: 15,
borderRadius: 100,
justifyContent: "center",
alignItems: "center",
marginBottom: 20,
},
buttonOutline: {
backgroundColor: "white",
marginTop: 5,
borderColor: "#FFA500",
borderWidth: 2,
},
});