Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
fa86b93c
Commit
fa86b93c
authored
May 11, 2021
by
Nguyễn Thị Thúy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set event click on price item
parent
98a628fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
ItemPrice.js
src/Screens/Home/ItemPrice.js
+0
-0
PriceListView.js
src/Screens/Home/PriceListView.js
+18
-7
No files found.
src/Screens/Home/ItemPrice.js
View file @
fa86b93c
This diff is collapsed.
Click to expand it.
src/Screens/Home/PriceListView.js
View file @
fa86b93c
...
...
@@ -11,9 +11,12 @@ import {
import
{
getFontXD
,
HEIGHTXD
,
WIDTHXD
}
from
'../../Config/Functions'
;
import
R
from
'../../assets/R'
;
import
ItemPrice
from
'./ItemPrice'
;
import
{
PRODUCTDETAIL
}
from
'../../routers/ScreenNames'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
const
PriceListView
=
(
props
)
=>
{
const
{
setFilterId
,
filters
,
dataPrice
,
filterId
}
=
props
;
const
navigate
=
useNavigation
();
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{
styles
.
headerContainer
}
>
...
...
@@ -41,24 +44,32 @@ const PriceListView = (props) => {
data
=
{
dataPrice
}
ListHeaderComponent
=
{()
=>
<
View
style
=
{[
styles
.
container
]}
>
<
View
style
=
{[
styles
.
headerContent
,
{
flex
:
0.3
,
justifyContent
:
'flex-start'
,
alignItems
:
'center'
,}]}
>
<
View
style
=
{[
styles
.
headerContent
,
{
flex
:
0.3
,
justifyContent
:
'flex-start'
,
alignItems
:
'center'
,
}]}
>
<
Text
>
T
ê
n
<
/Text
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
View
style
=
{[
styles
.
headerContent
,
{
flex
:
1.5
}]}
>
<
Text
>
T
ỷ
l
ệ
thay
đổ
i
<
/Text
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
View
style
=
{[
styles
.
headerContent
]}
>
<
Text
>
Gi
á
m
ở
/
đó
ng
<
/Text
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
View
style
=
{[
styles
.
headerContent
]}
>
<
Text
>
Gi
á
cao
/
th
ấ
p
<
/Text
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconSort
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View>
}
renderItem
=
{({
item
})
=>
<
ItemPrice
item
=
{
item
}
/>
}
renderItem
=
{({
item
})
=>
<
ItemPrice
item
=
{
item
}
onPress
=
{()
=>
navigate
.
navigate
(
PRODUCTDETAIL
,
{
id
:
item
.
id
,
name
:
item
.
name
,
})}
/>
}
/>
<
/View
>
);
...
...
@@ -95,7 +106,7 @@ const styles = StyleSheet.create({
flex
:
1
,
flexDirection
:
'row'
,
marginHorizontal
:
WIDTHXD
(
30
),
marginBottom
:
HEIGHTXD
(
10
)
marginBottom
:
HEIGHTXD
(
10
)
,
},
headerContent
:
{
...
...
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