Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-090 frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-090
2021-090 frontend
Commits
64d413b7
Commit
64d413b7
authored
Oct 11, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout completed
parent
3de28d19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
9 deletions
+34
-9
components/icon_button.component.js
components/icon_button.component.js
+4
-3
screen/Home.Auction.Screen.js
screen/Home.Auction.Screen.js
+30
-6
No files found.
components/icon_button.component.js
View file @
64d413b7
...
...
@@ -13,18 +13,19 @@ export const AppIconButton = (props) => {
const
styles
=
StyleSheet
.
create
({
button
:{
alignItems
:
"
center
"
,
justifyContent
:
'
center
'
,
padding
:
10
,
fontSize
:
16
,
width
:
1
0
0
,
width
:
1
5
0
,
height
:
55
,
backgroundColor
:
themeColors
.
PRIMARY_COLOR
,
backgroundColor
:
themeColors
.
BLACK
,
borderRadius
:
20
,
shadowColor
:
'
rgba(0,0,0, .4)
'
,
shadowOffset
:
{
height
:
2
,
width
:
1
},
shadowOpacity
:
1
,
shadowRadius
:
1
,
elevation
:
2
,
marginHorizontal
:
5
marginHorizontal
:
10
},
label
:
{
fontSize
:
22
,
...
...
screen/Home.Auction.Screen.js
View file @
64d413b7
...
...
@@ -3,21 +3,37 @@
// Import React and Component
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
{
AppTextInput
}
from
'
../components/text_input.component
'
;
import
{
AppIconButton
}
from
'
../components/icon_button.component
'
;
import
{
AppContainer
}
from
'
../container/container
'
;
import
themeColors
from
'
../assets/colors
'
;
const
HomeAuctionScreen
=
({
navigation
})
=>
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
header
}
>
<
/View
>
<
ScrollView
horizontal
style
=
{
styles
.
btnRowContainer
}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
AppIconButton
label
=
'
Buy
'
onPress
=
{()
=>
navigation
.
navigate
(
"
SignUp
"
)}
/
>
<
AppIconButton
label
=
'
Sell
'
/>
<
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
>
);
};
...
...
@@ -34,9 +50,17 @@ const styles = StyleSheet.create({
borderBottomEndRadius
:
25
,
borderBottomStartRadius
:
25
},
btnRowContainer
:
{
maxHeight
:
100
},
contentContainer
:
{
flex
:
1
,
flexDirection
:
'
row
'
,
margin
:
20
},
auctionHeading
:
{
fontSize
:
24
,
fontWeight
:
'
bold
'
,
color
:
themeColors
.
SECONDARY_COLOR
}
})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment