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
bf90e464
Commit
bf90e464
authored
Oct 11, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add auction component added
parent
91a881cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
7 deletions
+47
-7
components/add_bid_button.component.js
components/add_bid_button.component.js
+43
-0
components/auction.stake.component.js
components/auction.stake.component.js
+0
-1
components/text_input.component.js
components/text_input.component.js
+0
-5
screen/Auction.Detail.Screen.js
screen/Auction.Detail.Screen.js
+4
-1
No files found.
components/add_bid_button.component.js
0 → 100644
View file @
bf90e464
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
}
});
components/auction.stake.component.js
View file @
bf90e464
...
...
@@ -43,7 +43,6 @@ const styles = StyleSheet.create({
alignItems
:
"
center
"
,
fontSize
:
16
,
flexDirection
:
'
row
'
,
marginVertical
:
10
,
borderRadius
:
10
,
backgroundColor
:
themeColors
.
PRIMARY_COLOR
,
marginHorizontal
:
10
...
...
components/text_input.component.js
View file @
bf90e464
...
...
@@ -15,11 +15,6 @@ const styles = StyleSheet.create({
fontSize
:
16
,
borderBottomColor
:
themeColors
.
SECONDARY_COLOR
,
borderBottomWidth
:
1
,
},
Text
:
{
fontFamily
:
'
Poppins-Black
'
,
fontSize
:
22
,
color
:
themeColors
.
WHITE
}
});
screen/Auction.Detail.Screen.js
View file @
bf90e464
...
...
@@ -9,6 +9,7 @@ import { AppContainer } from '../container/container';
import
themeColors
from
'
../assets/colors
'
;
import
{
AuctionBottomTab
}
from
'
../Navigations/AuctionBottomTab
'
;
import
AppCarousel
from
'
../components/carousel.component
'
;
import
{
AppAddBid
}
from
'
../components/add_bid_button.component
'
;
const
AuctionDetailScreen
=
(
props
,
{
navigation
})
=>
{
return
(
...
...
@@ -26,7 +27,7 @@ const AuctionDetailScreen = (props, {navigation}) => {
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
auctionText
}
>
Last
Stakes
<
/Text
>
<
ScrollView
horizontal
>
<
ScrollView
horizontal
style
=
{{
height
:
100
}}
>
<
View
style
=
{
styles
.
stakesContainer
}
>
<
AppStakeItem
/>
<
AppStakeItem
/>
...
...
@@ -34,6 +35,7 @@ const AuctionDetailScreen = (props, {navigation}) => {
<
AppStakeItem
/>
<
/View
>
<
/ScrollView
>
<
AppAddBid
/>
<
/AppContainer
>
<
AuctionBottomTab
/>
<
/View
>
...
...
@@ -86,6 +88,7 @@ const styles = StyleSheet.create({
},
stakesContainer
:
{
height
:
125
,
marginTop
:
20
,
flexDirection
:
'
row
'
}
})
\ 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