-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
61 lines (55 loc) · 1.48 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
import { StatusBar } from 'expo-status-bar';
import React, { useState } from 'react';
import { StyleSheet, Text, ScrollView, ImageBackground, Dimensions, View } from 'react-native';
import Search from './components/Search';
import NavBar from './components/NavBar'; //To Be Implemented
import { NavigationContainer } from '@react-navigation/native'; //To Be Implemented
export default function App() {
const [site, setSite] = useState({});
return (
<NavigationContainer>
<View style={styles.container}>
<View style={styles.bgcontainer}>
<ImageBackground source={require('./bbg.png')} style={styles.image} >
<Text style={styles.title}>CampLite</Text>
<StatusBar style="auto" />
<ScrollView>
<Search />
</ScrollView>
</ImageBackground>
</View>
</View>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
width: Dimensions.get("window").width,
height: Dimensions.get("window").height,
backgroundColor: 'transparent',
},
image: {
flex: 1,
width: null,
height: null
},
title: {
fontFamily: 'Verdana-Bold',
textAlign: 'center',
color: 'beige',
fontSize: 70,
paddingTop: '22%',
},
bgcontainer: {
flex: 1,
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
}
});