locaft_mobile/components/HomeScreen.js

54 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-06-06 10:41:06 -07:00
import React from 'react';
import {
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';
2021-06-10 22:23:48 -07:00
import { Icon } from 'react-native-elements'
2021-06-06 10:41:06 -07:00
const HomeScreen = () => {
return (
<>
<StatusBar backgroundColor="#fffff2" barStyle="dark-content" />
<View
style={styles.viewRoot}>
2022-03-18 11:33:51 -07:00
<Text style={styles.heading}>Rental</Text>
2021-06-10 22:23:48 -07:00
<View style={{ flexDirection: "row", marginTop: "30%", marginLeft: "15%"}}>
<Icon name='home-outline' style={styles.icon} type='ionicon' size={46} color='#206ba5' ></Icon>
2022-03-18 11:33:51 -07:00
<Text style={{color: "#206ba5", fontSize: 25, marginLeft: "-10%"}}>Home</Text>
2021-06-10 22:23:48 -07:00
</View>
<View style={{ flexDirection: "row", marginTop: "30%", marginLeft: "15%"}}>
<Icon name='key' type='feather' style={styles.icon} size={46} color='#206ba5'></Icon>
2022-03-18 11:33:51 -07:00
<Text style={{color: "#206ba5", fontSize: 25, marginLeft: "-10%"}}>Key</Text>
2021-06-10 22:23:48 -07:00
</View>
2021-06-06 10:41:06 -07:00
</View>
2021-06-10 22:23:48 -07:00
2021-06-06 10:41:06 -07:00
</>
);
}
const styles = StyleSheet.create({
viewRoot: {
backgroundColor: '#fffff2',
height: '100%',
},
heading: {
color: '#206ba5',
fontSize: 60,
textAlign: 'center',
2021-06-10 22:23:48 -07:00
marginTop: '40%',
2021-06-06 10:41:06 -07:00
fontFamily: 'Ubuntu-Bold',
2021-06-10 22:23:48 -07:00
},
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;