locaft_mobile/components/HomeScreen.js

83 lines
2.0 KiB
JavaScript
Raw Normal View History

2022-05-08 05:19:40 -07:00
import React, {useState} from 'react';
2022-05-25 21:15:54 -07:00
import {
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
TouchableHighlight,
} from 'react-native';
2022-05-08 05:19:40 -07:00
import {Icon} from 'react-native-elements';
2021-06-06 10:41:06 -07:00
2022-05-25 21:15:54 -07:00
const HomeScreen = ({navigation}) => {
2022-05-08 05:19:40 -07:00
const [token, setToken] = useState('');
2021-06-06 10:41:06 -07:00
2022-05-08 05:19:40 -07:00
return (
<>
2022-05-25 21:15:54 -07:00
<StatusBar backgroundColor="#ffffff" barStyle="dark-content" />
2022-05-08 05:19:40 -07:00
<View style={styles.viewRoot}>
<Text style={styles.heading}>Rental</Text>
2022-05-25 21:15:54 -07:00
<TouchableHighlight
onPress={() => navigation.navigate('SearchHouse')}
underlayColor="white"
activeOpacity={0.5}
2022-05-25 21:15:54 -07:00
>
<View
style={{flexDirection: 'row', marginTop: '30%', marginLeft: '15%'}}>
2022-05-25 21:15:54 -07:00
<Icon
name="home-outline"
style={styles.icon}
type="ionicon"
size={46}
color="#206ba5"
/>
<Text style={{color: '#206ba5', fontSize: 25, marginLeft: '-10%'}}>
Home
</Text>
2022-05-08 05:19:40 -07:00
</View>
</TouchableHighlight>
<TouchableHighlight
2022-05-28 07:55:11 -07:00
onPress={() => navigation.navigate('HouseProfile')}
underlayColor="white"
activeOpacity={0.5}
>
2022-05-08 05:19:40 -07:00
<View
style={{flexDirection: 'row', marginTop: '30%', marginLeft: '15%'}}>
<Icon
name="key"
type="feather"
style={styles.icon}
size={46}
color="#206ba5"
/>
<Text style={{color: '#206ba5', fontSize: 25, marginLeft: '-10%'}}>
Key
</Text>
</View>
</TouchableHighlight>
2022-05-08 05:19:40 -07:00
</View>
</>
);
};
2021-06-06 10:41:06 -07:00
const styles = StyleSheet.create({
2022-05-08 05:19:40 -07:00
viewRoot: {
2022-05-14 09:26:15 -07:00
backgroundColor: '#ffffff',
2022-05-08 05:19:40 -07:00
height: '100%',
},
heading: {
color: '#206ba5',
fontSize: 60,
textAlign: 'center',
marginTop: '40%',
fontFamily: 'Ubuntu-Bold',
},
icon: {
alignSelf: 'flex-start',
marginLeft: '28%',
flexDirection: 'row',
},
2021-06-06 10:41:06 -07:00
});
2022-03-18 11:33:51 -07:00
export default HomeScreen;