Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_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
clone_excelso
Commits
38f08cff
Commit
38f08cff
authored
May 18, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
fc172df7
025c1436
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
87 deletions
+60
-87
Auth.js
view/Auth.js
+12
-1
Renewal.js
view/Renewal.js
+48
-86
No files found.
view/Auth.js
View file @
38f08cff
...
...
@@ -261,7 +261,18 @@ class Auth extends React.Component {
},
title
:
'CHANGE PASSWORD'
}}
/
>
<
Stack
.
Screen
name
=
"Card Activation"
component
=
{
CardActivation
}
/
>
<
Stack
.
Screen
name
=
"Renewal"
component
=
{
Renewal
}
/
>
<
Stack
.
Screen
name
=
"Renewal"
component
=
{
Renewal
}
options
=
{{
headerStyle
:
{
backgroundColor
:
'#CFB368'
},
headerTitleContainerStyle
:
{
alignContent
:
'center'
},
headerTitleAlign
:
'center'
,
headerTintColor
:
'#fff'
,
headerTitleStyle
:
{
alignSelf
:
'center'
,
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
textAlign
:
'center'
},
title
:
'RENEWAL'
}}
/
>
<
Stack
.
Screen
name
=
"Account"
component
=
{
Account
}
/
>
<
Stack
.
Screen
name
=
"Login"
component
=
{
Login
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"Transfer Balance"
component
=
{
TransferBalance
}
options
=
{{
...
...
view/Renewal.js
View file @
38f08cff
import
React
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
Button
,
Alert
}
from
'react-native'
;
import
{
View
,
Text
,
StyleSheet
,
Button
,
Alert
,
TouchableOpacity
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
;
import
Axios
from
'axios'
;
...
...
@@ -73,45 +73,50 @@ class Renewal extends React.Component {
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
header
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
margin
:
20
,
fontSize
:
25
,
alignSelf
:
'center'
}}
>
Renewal
<
/Text
>
{
/* <Text style={{ textAlign: 'center', margin: 20, fontSize: 25, alignSelf: 'center' }}>Renewal</Text> */
}
<
/View
>
<
View
style
=
{
styles
.
body
}
>
<
View
style
=
{
styles
.
cont_curent_balance
}
>
<
View
style
=
{
styles
.
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
Current
Balance
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
}}
>
Current
Balance
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
value_current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
{
this
.
state
.
current_balance
}
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
current_balance
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
cont_
biaya_renewal
}
>
<
View
style
=
{
styles
.
biaya_renewal
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
Biaya
Renewal
<
/Text
>
<
View
style
=
{
styles
.
cont_
curent_balance
}
>
<
View
style
=
{
styles
.
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
}}
>
Biaya
Renewal
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
value_
biaya_renewal
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
{
this
.
state
.
biaya_renewal
}
<
/Text
>
<
View
style
=
{
styles
.
value_
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
IDR
{
this
.
state
.
biaya_renewal
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
cont_
expired
}
>
<
View
style
=
{
styles
.
expired
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
Expired
<
/Text
>
<
View
style
=
{
styles
.
cont_
curent_balance
}
>
<
View
style
=
{
styles
.
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
}}
>
Expired
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
value_
expired
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
{
this
.
state
.
expired
}
<
/Text
>
<
View
style
=
{
styles
.
value_
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
{
this
.
state
.
expired
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
cont_
renew_until
}
>
<
View
style
=
{
styles
.
renew_until
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
Renew
Until
<
/Text
>
<
View
style
=
{
styles
.
cont_
curent_balance
}
>
<
View
style
=
{
styles
.
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
}}
>
Renew
Until
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
value_
renew_until
}
>
<
Text
style
=
{{
textAlign
:
'center'
}}
>
{
this
.
state
.
renew_until
}
<
/Text
>
<
View
style
=
{
styles
.
value_
current_balance
}
>
<
Text
style
=
{{
textAlign
:
'center'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
,
color
:
'gray'
}}
>
{
this
.
state
.
renew_until
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
btn_renewal
}
>
{
/*
<View style={styles.btn_renewal}>
<Button title="Renew" onPress={() => this._renewal()}></Button>
</View> */
}
<
TouchableOpacity
onPress
=
{()
=>
this
.
_renewal
()}
>
<
View
style
=
{
styles
.
button
}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontFamily
:
'Gotham-Black'
}}
>
RENEW
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
)
...
...
@@ -125,83 +130,40 @@ const styles = StyleSheet.create({
backgroundColor
:
'white'
,
},
header
:
{
flex
:
1
,
flex
:
0.
1
,
},
body
:
{
flex
:
4
,
flex
:
0.9
,
},
cont_curent_balance
:
{
flexDirection
:
'row'
,
height
:
50
,
},
cont_biaya_renewal
:
{
flexDirection
:
'row'
,
height
:
50
,
},
cont_expired
:
{
flexDirection
:
'row'
,
height
:
50
,
},
cont_renew_until
:
{
flexDirection
:
'row'
,
height
:
50
,
flex
:
0.2
},
current_balance
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
},
biaya_renewal
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
// backgroundColor:'cyan',
justifyContent
:
'center'
,
},
expired
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
},
renew_until
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
},
value_current_balance
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
,
marginHorizontal
:
30
,
paddingHorizontal
:
10
,
paddingVertical
:
5
,
justifyContent
:
'center'
,
borderWidth
:
1
,
borderColor
:
'gray'
,
borderRadius
:
10
,
// backgroundColor:'maroon'
},
value_biaya_renewal
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
,
},
value_expired
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
,
},
value_renew_until
:
{
flex
:
1
,
margin
:
5
,
justifyContent
:
'center'
,
button
:
{
flex
:
0.2
,
backgroundColor
:
'#CFB368'
,
marginTop
:
20
,
marginHorizontal
:
80
,
borderRadius
:
15
,
padding
:
20
,
alignItems
:
'center'
,
justifyContent
:
'center'
},
btn_renewal
:
{
marginRight
:
30
,
marginLeft
:
30
,
marginTop
:
10
,
}
})
const
mapStateToProps
=
(
state
)
=>
{
...
...
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