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
7bcf230d
Commit
7bcf230d
authored
Oct 11, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auction_item component modified
parent
b64b28a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
14 deletions
+47
-14
components/auction_item.component.js
components/auction_item.component.js
+39
-7
container/container.js
container/container.js
+3
-3
screen/User.Auctions.Screen.js
screen/User.Auctions.Screen.js
+5
-4
No files found.
components/auction_item.component.js
View file @
7bcf230d
import
React
from
'
react
'
;
import
{
StyleSheet
,
TouchableOpacity
,
Text
}
from
'
react-native
'
;
import
{
StyleSheet
,
TouchableOpacity
,
Text
,
View
}
from
'
react-native
'
;
import
themeColors
from
'
../assets/colors
'
;
export
const
AppAuctionItem
=
(
props
)
=>
{
import
{
MaterialIcons
}
from
'
@expo/vector-icons
'
;
export
const
AppAuctionItem
=
props
=>
{
return
(
<
View
>
{
props
.
delete
?
(
<
View
style
=
{
styles
.
container
}
>
<
TouchableOpacity
onPress
=
{
props
.
onSelect
}
style
=
{
styles
.
button
}
>
<
Text
style
=
{
styles
.
label
}
>
{
props
.
label
}
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{
props
.
onDelete
}
style
=
{
styles
.
delBtn
}
>
<
MaterialIcons
name
=
"
delete
"
size
=
{
24
}
color
=
{
themeColors
.
WHITE
}
/
>
<
/TouchableOpacity
>
<
/View
>
)
:
(
<
TouchableOpacity
onPress
=
{
props
.
onPress
}
style
=
{
styles
.
button
}
>
<
Text
style
=
{
styles
.
label
}
>
{
props
.
label
}
<
/Text
>
<
/TouchableOpacity
>
)}
<
/View
>
)
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
flexDirection
:
'
row
'
,
justifyContent
:
'
space-between
'
},
button
:{
alignItems
:
"
center
"
,
padding
:
20
,
fontSize
:
16
,
flexGrow
:
1
,
marginRight
:
10
,
backgroundColor
:
themeColors
.
PRIMARY_COLOR
,
borderRadius
:
20
,
shadowColor
:
'
rgba(0,0,0, .4)
'
,
...
...
@@ -24,6 +44,18 @@ const styles = StyleSheet.create({
elevation
:
2
,
marginVertical
:
10
},
delBtn
:{
padding
:
20
,
fontSize
:
16
,
backgroundColor
:
themeColors
.
BLACK
,
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
...
...
container/container.js
View file @
7bcf230d
import
React
from
'
react
'
;
import
{
StyleSheet
,
View
}
from
'
react-native
'
;
import
{
S
afeAreaView
,
S
tyleSheet
,
View
}
from
'
react-native
'
;
export
const
AppContainer
=
(
props
)
=>
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
SafeArea
View
style
=
{
styles
.
container
}
>
{
props
.
children
}
<
/View
>
<
/
SafeArea
View
>
)
}
...
...
screen/User.Auctions.Screen.js
View file @
7bcf230d
...
...
@@ -16,10 +16,10 @@ const UserAuctionListScreen = ({navigation}) => {
<
Text
style
=
{
styles
.
auctionHeading
}
>
Auctions
List
<
/Text
>
<
ScrollView
>
<
View
>
<
AppAuctionItem
label
=
'
Auction Item 1
'
onPress
=
{()
=>
navigation
.
navigate
(
"
SignUp
"
)}
/
>
<
AppAuctionItem
label
=
'
Auction Item 2
'
/>
<
AppAuctionItem
label
=
'
Auction Item 3
'
/>
<
AppAuctionItem
label
=
'
Auction Item 4
'
/>
<
AppAuctionItem
label
=
'
Auction Item 1
'
delete
onPress
=
{()
=>
navigation
.
navigate
(
"
SignUp
"
)}
/
>
<
AppAuctionItem
label
=
'
Auction Item 2
'
delete
/
>
<
AppAuctionItem
label
=
'
Auction Item 3
'
delete
/
>
<
AppAuctionItem
label
=
'
Auction Item 4
'
delete
/
>
<
/View
>
<
/ScrollView
>
<
/AppContainer
>
...
...
@@ -32,6 +32,7 @@ export default UserAuctionListScreen;
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
paddingTop
:
50
,
backgroundColor
:
'
#ffffff
'
},
header
:
{
...
...
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