Commit 64d413b7 authored by Pramodh Rajapakse's avatar Pramodh Rajapakse

layout completed

parent 3de28d19
...@@ -13,18 +13,19 @@ export const AppIconButton = (props) => { ...@@ -13,18 +13,19 @@ export const AppIconButton = (props) => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
button:{ button:{
alignItems: "center", alignItems: "center",
justifyContent: 'center',
padding: 10, padding: 10,
fontSize: 16, fontSize: 16,
width: 100, width: 150,
height: 55, height: 55,
backgroundColor: themeColors.PRIMARY_COLOR, backgroundColor: themeColors.BLACK,
borderRadius: 20, borderRadius: 20,
shadowColor: 'rgba(0,0,0, .4)', shadowColor: 'rgba(0,0,0, .4)',
shadowOffset: { height: 2, width: 1 }, shadowOffset: { height: 2, width: 1 },
shadowOpacity: 1, shadowOpacity: 1,
shadowRadius: 1, shadowRadius: 1,
elevation: 2, elevation: 2,
marginHorizontal: 5 marginHorizontal: 10
}, },
label: { label: {
fontSize: 22, fontSize: 22,
......
...@@ -3,21 +3,37 @@ ...@@ -3,21 +3,37 @@
// Import React and Component // Import React and Component
import React from 'react'; import React from 'react';
import {View, StyleSheet, Image} from 'react-native'; import {View, StyleSheet, Text, ScrollView} from 'react-native';
import { AppButton } from "../components/button.component"; import { AppButton } from "../components/button.component";
import { AppTextInput } from '../components/text_input.component'; import { AppTextInput } from '../components/text_input.component';
import { AppIconButton } from '../components/icon_button.component'; import { AppIconButton } from '../components/icon_button.component';
import { AppContainer } from '../container/container';
import themeColors from '../assets/colors'; import themeColors from '../assets/colors';
const HomeAuctionScreen = ({navigation}) => { const HomeAuctionScreen = ({navigation}) => {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<View style={styles.header}> <View style={styles.header}>
</View> </View>
<View style={styles.contentContainer}> <ScrollView horizontal style={styles.btnRowContainer}>
<AppIconButton label='Buy' onPress = {() => navigation.navigate("SignUp")}/> <View style={styles.contentContainer}>
<AppIconButton label='Sell'/> <AppIconButton label='Buy' onPress = {() => navigation.navigate("SignUp")}/>
<AppIconButton label='My Bids'/> <AppIconButton label='Sell'/>
</View> <AppIconButton label='My Bids'/>
<AppIconButton label='My Auctions'/>
</View>
</ScrollView>
<AppContainer>
<Text style={styles.auctionHeading}>Auctions List</Text>
<ScrollView>
<View>
<AppButton label='Buy' onPress = {() => navigation.navigate("SignUp")}/>
<AppButton label='Sell'/>
<AppButton label='My Bids'/>
<AppButton label='My Auctions'/>
</View>
</ScrollView>
</AppContainer>
</View> </View>
); );
}; };
...@@ -34,9 +50,17 @@ const styles = StyleSheet.create({ ...@@ -34,9 +50,17 @@ const styles = StyleSheet.create({
borderBottomEndRadius: 25, borderBottomEndRadius: 25,
borderBottomStartRadius: 25 borderBottomStartRadius: 25
}, },
btnRowContainer: {
maxHeight: 100
},
contentContainer: { contentContainer: {
flex: 1, flex: 1,
flexDirection: 'row', flexDirection: 'row',
margin: 20 margin: 20
},
auctionHeading: {
fontSize: 24,
fontWeight: 'bold',
color: themeColors.SECONDARY_COLOR
} }
}) })
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment