Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
new_excelso
Commits
3cf7e94f
Commit
3cf7e94f
authored
Jun 15, 2020
by
William Goszal
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hilangkan fixed height item di menu & cart
parent
45b2ea9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Item.js
view/Item.js
+3
-3
ItemShopingCart.js
view/ItemShopingCart.js
+3
-3
No files found.
view/Item.js
View file @
3cf7e94f
...
...
@@ -68,7 +68,7 @@ class Item extends React.Component {
{
item
.
code
==
'CATEGORY'
?
(
<
Text
style
=
{{
fontSize
:
15
,
color
:
'#c9af6d'
,
fontFamily
:
'Gotham-Black'
}}
>
{
item
.
name
}
<
/Text
>
)
:
(
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
height
:
100
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
Modal
animationType
=
"slide"
transparent
=
{
true
}
visible
=
{
this
.
state
.
modalVisible
}
...
...
@@ -105,12 +105,12 @@ class Item extends React.Component {
<
/View
>
<
/View
>
<
/Modal
>
<
View
style
=
{{
flex
:
1
,
height
:
100
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Menu Detail'
,
{
nameMenu
:
item
.
name
,
desc
:
item
.
description
,
image
:
item
.
image
})}
>
<
Image
source
=
{{
uri
:
item
.
image
}}
style
=
{{
height
:
100
,
width
:
100
,
borderRadius
:
10
,
}}
><
/Image
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
flex
:
2
,
height
:
150
}}
>
<
View
style
=
{{
flex
:
2
}}
>
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
}}
>
{
item
.
motm
?
(
...
...
view/ItemShopingCart.js
View file @
3cf7e94f
...
...
@@ -104,13 +104,13 @@ class ItemShoping extends React.Component {
<
/View
>
<
/View
>
<
/Modal
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
height
:
100
,
marginVertical
:
5
}}
>
<
View
style
=
{{
flex
:
1
,
height
:
100
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
marginVertical
:
8
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Menu Detail'
,
{
nameMenu
:
item
.
name
,
desc
:
item
.
description
,
image
:
item
.
image
})}
>
<
Image
source
=
{{
uri
:
item
.
image
}}
style
=
{{
height
:
100
,
width
:
100
,
borderRadius
:
10
,
}}
><
/Image
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
flex
:
2
,
height
:
150
}}
>
<
View
style
=
{{
flex
:
2
}}
>
<
View
style
=
{{
marginLeft
:
5
,
marginRight
:
5
}}
>
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
}}
>
{
item
.
name
}
<
/Text
>
<
NumberFormat
decimalScale
=
{
0
}
value
=
{
item
.
price
}
renderText
=
{
value
=>
<
Text
style
=
{{
fontSize
:
14
,
margin
:
5
,
marginRight
:
10
,
fontFamily
:
'Gotham-Light'
,
color
:
'grey'
}}
>
Rp
.
{
value
}
<
/Text>} displayType={'text'} thousandSeparator={true} prefix={''} /
>
...
...
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