-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHome.js
68 lines (56 loc) · 1.64 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
// import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from '@react-navigation/native';
import React, {useState}from 'react';
import { StyleSheet, View, FlatList, Text, Image, Button, TouchableOpacity} from 'react-native';
export default function Home({navigation}) {
return(
<View>
<Image
source={require('./assets/MaxCap.png')}
style = {styles.logo}
/>
<TouchableOpacity>
<Text style={styles.userbutton} onPress={()=>navigation.navigate("Search")}> User</Text>
<Text style={styles.businessButton} onPress={()=>navigation.navigate("Business")}>I am a registered business</Text>
</TouchableOpacity>
<Image source={require('./assets/copyright.png')} style={{height:13,width:13, marginTop:185, marginLeft:55}}/>
<Text style={{position:'absolute', marginTop:730, marginLeft:70, color:'grey'}}>All rights reserved by MaxCap Team at NSBE47</Text>
</View>
)
}
const styles = StyleSheet.create({
homebutton:{
flex:1,
flexDirection:'row',
justifyContent:'space-evenly',
},
businessButton:{
marginLeft: 132,
fontStyle:'italic'
},
userbutton:{
textAlign:'center',
// backgroundColor:'coral',
marginTop:-100,
marginBottom:60,
marginLeft:140,
padding:12,
width:150,
height:50,
color:'#BF4E09',
fontWeight:'bold',
fontSize:19,
// backgroundColor:'#BF4E09',
borderColor:'#BF4E09',
borderWidth:2,
borderStyle:'solid',
borderRadius:10,
overflow:'hidden'
},
logo: {
marginTop: 120,
height: 400,
width: 300,
marginLeft:75,
}
})