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
aafda65f
Commit
aafda65f
authored
Oct 11, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bid component completed
parent
bf90e464
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
components/add_bid_button.component.js
components/add_bid_button.component.js
+18
-13
No files found.
components/add_bid_button.component.js
View file @
aafda65f
import
React
from
'
react
'
;
import
{
StyleSheet
,
TouchableOpacity
,
Text
,
View
,
TextInput
}
from
'
react-native
'
;
import
{
StyleSheet
,
TouchableOpacity
,
View
,
TextInput
}
from
'
react-native
'
;
import
themeColors
from
'
../assets/colors
'
;
import
{
AppTextInput
}
from
'
./text_input.component
'
;
import
{
MaterialIcons
}
from
"
@expo/vector-icons
"
;
export
const
AppAddBid
=
(
props
)
=>
{
return
(
<
View
style
=
{
styles
.
bidContainer
}
>
<
AppTextInput
/>
<
TextInput
style
=
{
styles
.
input
}
keyboardType
=
'
number-pad
'
placeholder
=
'
Enter bid
'
/>
<
TouchableOpacity
onPress
=
{
props
.
onPress
}
style
=
{
styles
.
bid
}
>
<
Text
style
=
{
styles
.
label
}
>
Bid
<
/Text
>
<
MaterialIcons
name
=
"
add
"
size
=
{
16
}
color
=
{
themeColors
.
WHITE
}
/
>
<
/TouchableOpacity
>
<
/View
>
)
}
const
styles
=
StyleSheet
.
create
({
bidContainer
:
{
flex
:
1
,
marginVertical
:
10
,
flexDirection
:
'
row
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
space-between
'
,
paddingHorizontal
:
20
paddingHorizontal
:
20
,
borderRadius
:
20
,
borderWidth
:
1
,
borderColor
:
themeColors
.
TERTIARY_COLOR
,
maxHeight
:
50
},
bid
:{
alignItems
:
"
center
"
,
padding
:
10
,
fontSize
:
16
,
padding
:
8
,
backgroundColor
:
themeColors
.
PRIMARY_COLOR
,
borderRadius
:
20
,
shadowColor
:
'
rgba(0,0,0, .4)
'
,
...
...
@@ -33,11 +36,13 @@ const styles = StyleSheet.create({
shadowOpacity
:
1
,
shadowRadius
:
1
,
elevation
:
2
,
marginVertical
:
10
height
:
33
},
label
:
{
fontSize
:
20
,
color
:
themeColors
.
WHITE
input
:{
alignItems
:
"
center
"
,
padding
:
10
,
fontSize
:
16
,
width
:
'
80%
'
}
});
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