Commit bf90e464 authored by Pramodh Rajapakse's avatar Pramodh Rajapakse

add auction component added

parent 91a881cb
import React from 'react';
import { StyleSheet, TouchableOpacity, Text, View, TextInput } from 'react-native';
import themeColors from '../assets/colors';
import { AppTextInput } from './text_input.component';
export const AppAddBid = (props) => {
return(
<View style={styles.bidContainer}>
<AppTextInput/>
<TouchableOpacity onPress={props.onPress} style={styles.bid}>
<Text style={styles.label}>Bid</Text>
</TouchableOpacity>
</View>
)
}
const styles = StyleSheet.create({
bidContainer: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
paddingHorizontal: 20
},
bid:{
alignItems: "center",
padding: 10,
fontSize: 16,
backgroundColor: themeColors.PRIMARY_COLOR,
borderRadius: 20,
shadowColor: 'rgba(0,0,0, .4)',
shadowOffset: { height: 2, width: 1 },
shadowOpacity: 1,
shadowRadius: 1,
elevation: 2,
marginVertical: 10
},
label: {
fontSize: 20,
color: themeColors.WHITE
}
});
...@@ -43,7 +43,6 @@ const styles = StyleSheet.create({ ...@@ -43,7 +43,6 @@ const styles = StyleSheet.create({
alignItems: "center", alignItems: "center",
fontSize: 16, fontSize: 16,
flexDirection: 'row', flexDirection: 'row',
marginVertical: 10,
borderRadius: 10, borderRadius: 10,
backgroundColor: themeColors.PRIMARY_COLOR, backgroundColor: themeColors.PRIMARY_COLOR,
marginHorizontal: 10 marginHorizontal: 10
......
...@@ -15,11 +15,6 @@ const styles = StyleSheet.create({ ...@@ -15,11 +15,6 @@ const styles = StyleSheet.create({
fontSize: 16, fontSize: 16,
borderBottomColor: themeColors.SECONDARY_COLOR, borderBottomColor: themeColors.SECONDARY_COLOR,
borderBottomWidth: 1, borderBottomWidth: 1,
},
Text: {
fontFamily: 'Poppins-Black',
fontSize: 22,
color: themeColors.WHITE
} }
}); });
...@@ -9,6 +9,7 @@ import { AppContainer } from '../container/container'; ...@@ -9,6 +9,7 @@ import { AppContainer } from '../container/container';
import themeColors from '../assets/colors'; import themeColors from '../assets/colors';
import { AuctionBottomTab } from '../Navigations/AuctionBottomTab'; import { AuctionBottomTab } from '../Navigations/AuctionBottomTab';
import AppCarousel from '../components/carousel.component'; import AppCarousel from '../components/carousel.component';
import { AppAddBid } from '../components/add_bid_button.component';
const AuctionDetailScreen = (props, {navigation}) => { const AuctionDetailScreen = (props, {navigation}) => {
return ( return (
...@@ -26,7 +27,7 @@ const AuctionDetailScreen = (props, {navigation}) => { ...@@ -26,7 +27,7 @@ const AuctionDetailScreen = (props, {navigation}) => {
</View> </View>
</View> </View>
<Text style={styles.auctionText}>Last Stakes</Text> <Text style={styles.auctionText}>Last Stakes</Text>
<ScrollView horizontal> <ScrollView horizontal style={{height: 100}}>
<View style={styles.stakesContainer}> <View style={styles.stakesContainer}>
<AppStakeItem/> <AppStakeItem/>
<AppStakeItem/> <AppStakeItem/>
...@@ -34,6 +35,7 @@ const AuctionDetailScreen = (props, {navigation}) => { ...@@ -34,6 +35,7 @@ const AuctionDetailScreen = (props, {navigation}) => {
<AppStakeItem/> <AppStakeItem/>
</View> </View>
</ScrollView> </ScrollView>
<AppAddBid/>
</AppContainer> </AppContainer>
<AuctionBottomTab/> <AuctionBottomTab/>
</View> </View>
...@@ -86,6 +88,7 @@ const styles = StyleSheet.create({ ...@@ -86,6 +88,7 @@ const styles = StyleSheet.create({
}, },
stakesContainer: { stakesContainer: {
height: 125, height: 125,
marginTop: 20,
flexDirection: 'row' flexDirection: 'row'
} }
}) })
\ 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