Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eCartPro-Customer
Project
Project
Details
Activity
Releases
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
Dida Adams Arizona
eCartPro-Customer
Commits
a58e1a09
Commit
a58e1a09
authored
Jul 16, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update screen
parent
8d6a05cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
CartScreen.js
App/Containers/CartScreen.js
+52
-0
No files found.
App/Containers/CartScreen.js
0 → 100644
View file @
a58e1a09
import
React
,
{
Component
}
from
'react'
import
{
ScrollView
,
Text
,
KeyboardAvoidingView
,
View
,
Image
}
from
'react-native'
import
{
connect
}
from
'react-redux'
// Add Actions - replace 'Your' with whatever your reducer is called :)
// import YourActions from '../Redux/YourRedux'
// Styles
import
styles
from
'./Styles/CartScreenStyle'
import
BaseHeader
from
'../Components/BaseHeader'
import
{
Images
}
from
'../Themes'
import
BaseText
from
'../Components/BaseText'
class
CartScreen
extends
Component
{
render
()
{
return
(
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'#4cc9f0'
}}
>
<
BaseHeader
onBackPress
=
{()
=>
this
.
props
.
navigation
.
goBack
()}
leftText
=
{
'Keranjang'
}
rightText
=
{
'1 item'
}
/
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
style
=
{
styles
.
scrollContent
}
>
<
View
style
=
{{
paddingHorizontal
:
20
}}
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingVertical
:
20
,
paddingHorizontal
:
5
}}
>
<
View
style
=
{{
alignItems
:
'center'
,
justifyContent
:
'center'
,}}
>
<
Image
source
=
{
Images
.
icon_pesanansaya_gray
}
style
=
{{
width
:
30
,
height
:
35
,
resizeMode
:
'stretch'
}}
/
>
<
/View
>
<
View
style
=
{{
paddingLeft
:
10
,
flexGrow
:
1
}}
>
<
BaseText
text
=
{
"Paket 1"
}
type
=
{
"bold"
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'RegisterScreen'
)}
/
>
<
BaseText
text
=
{
"Dijual oleh e-CartPro"
}
type
=
{
"regular"
}
style
=
{{
opacity
:
.
8
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'RegisterScreen'
)}
/
>
<
/View
>
<
View
style
=
{{
alignItems
:
'center'
,
justifyContent
:
'center'
,}}
>
<
Image
source
=
{
Images
.
icon_close
}
style
=
{{
width
:
35
,
height
:
35
,
resizeMode
:
'stretch'
}}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingVertical
:
10
}}
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/View
>
)
}
}
const
mapStateToProps
=
(
state
)
=>
{
return
{
}
}
const
mapDispatchToProps
=
(
dispatch
)
=>
{
return
{
}
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
CartScreen
)
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