-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeforeHome.js
40 lines (35 loc) · 952 Bytes
/
beforeHome.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
import { ImageBackground, View, Text, StyleSheet } from "react-native";
import React, { useState, useRef, useEffect } from "react";
// ... your other imports
const BeforeHome = () => {
useEffect(() => {}, [styles]);
return (
<ImageBackground
source={require("./assets/img/truetree_background.png")} // Replace with your local image path
style={styles.backgroundImage}
>
{/* <Text style = {styles.text}>Welcome to</Text>
<Text style = {styles.text}>TRUETREE</Text> */}
</ImageBackground>
);
};
// Add this to your StyleSheet
const styles = StyleSheet.create({
backgroundImage: {
flex: 1,
width: "100%",
height: "100%",
position: "relative",
justifyContent: "center",
alignItems: "center",
},
text: {
textAlign: "center",
color: "#f25900",
fontSize: 40,
fontWeight: "400",
bottom: "10%",
},
// ... your other styles ...
});
export default BeforeHome;