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
c0c5783d
Commit
c0c5783d
authored
Aug 21, 2020
by
William Goszal
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide tombol upgrade premium
parent
b7d4d5b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Account.js
view/Account.js
+5
-3
Home.js
view/Home.js
+1
-0
No files found.
view/Account.js
View file @
c0c5783d
...
@@ -435,7 +435,8 @@ class Account extends React.Component {
...
@@ -435,7 +435,8 @@ class Account extends React.Component {
<
TouchableOpacity
style
=
{
styles
.
submitTopUp
}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
TouchableOpacity
style
=
{
styles
.
submitTopUp
}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'topup'
)}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'white'
,
fontSize
:
16
,
textAlign
:
'center'
}}
>
{
i18n
.
t
(
'topup'
)}
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
View
style
=
{{
padding
:
10
,
height
:
250
,
top
:
10
,
margin
:
10
}}
>
<
View
style
=
{{
padding
:
10
,
height
:
250
,
top
:
10
,
margin
:
0
}}
>
<
ImageBackground
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
padding
:
0
,
margin
:
0
}}
resizeMode
=
'stretch'
source
=
{
this
.
state
.
img_card
?
{
uri
:
this
.
state
.
img_card
}
:
null
}
>
<
ImageBackground
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
padding
:
0
,
margin
:
0
}}
resizeMode
=
'stretch'
source
=
{
this
.
state
.
img_card
?
{
uri
:
this
.
state
.
img_card
}
:
null
}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
margin
:
15
,
fontSize
:
14
,
color
:
'#c9af6d'
,
top
:
170
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
margin
:
15
,
fontSize
:
14
,
color
:
'#c9af6d'
,
top
:
170
}}
>
...
@@ -444,7 +445,8 @@ class Account extends React.Component {
...
@@ -444,7 +445,8 @@ class Account extends React.Component {
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
<
/View
>
<
/View
>
<
View
style
=
{{
marginLeft
:
20
,
marginRight
:
20
,
padding
:
5
}}
>
<
View
style
=
{{
marginLeft
:
10
,
marginRight
:
10
,
padding
:
5
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
margin
:
5
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
margin
:
5
}}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
3
}}
onPress
=
{()
=>
this
.
TransferBalance
()}
>
<
TouchableOpacity
style
=
{{
marginBottom
:
5
,
margin
:
3
}}
onPress
=
{()
=>
this
.
TransferBalance
()}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
<
Card
style
=
{{
height
:
120
,
width
:
155
}}
>
...
@@ -497,7 +499,7 @@ class Account extends React.Component {
...
@@ -497,7 +499,7 @@ class Account extends React.Component {
<
/Card
>
<
/Card
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
display
:
'none'
}}
>
{
this
.
state
.
premium
===
false
?
(
{
this
.
state
.
premium
===
false
?
(
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Upgrade Premium'
)}
style
=
{{
marginBottom
:
20
,
marginRight
:
5
,
marginLeft
:
5
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'Upgrade Premium'
)}
style
=
{{
marginBottom
:
20
,
marginRight
:
5
,
marginLeft
:
5
}}
>
<
Card
style
=
{{
width
:
200
,
paddingHorizontal
:
10
,
paddingTop
:
20
,
paddingBottom
:
20
}}
>
<
Card
style
=
{{
width
:
200
,
paddingHorizontal
:
10
,
paddingTop
:
20
,
paddingBottom
:
20
}}
>
...
...
view/Home.js
View file @
c0c5783d
...
@@ -47,6 +47,7 @@ class Home extends React.Component {
...
@@ -47,6 +47,7 @@ class Home extends React.Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
console
.
log
(
"BASE_URL Set : "
+
this
.
props
.
BASE_URL
)
this
.
CheckInbox
()
this
.
CheckInbox
()
const
screenWidth
=
Math
.
round
(
Dimensions
.
get
(
'window'
).
width
);
const
screenWidth
=
Math
.
round
(
Dimensions
.
get
(
'window'
).
width
);
...
...
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