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
784de36c
Commit
784de36c
authored
Jun 05, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benerin tombol bawah home
parent
49708af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
8 deletions
+28
-8
Home.js
view/Home.js
+28
-8
No files found.
view/Home.js
View file @
784de36c
...
@@ -225,7 +225,7 @@ class Home extends React.Component {
...
@@ -225,7 +225,7 @@ class Home extends React.Component {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
2
}}
>
<
View
style
=
{{
flex
:
2
}}
>
{
{
this
.
state
.
images
.
length
?
(
this
.
state
.
images
.
length
?
(
<
SliderBox
<
SliderBox
...
@@ -263,10 +263,10 @@ class Home extends React.Component {
...
@@ -263,10 +263,10 @@ class Home extends React.Component {
onCurrentImagePressed
=
{(
index
)
=>
this
.
props
.
navigation
.
navigate
(
'News Detail'
,
{
slug
:
this
.
state
.
slugs
[
index
]
})}
onCurrentImagePressed
=
{(
index
)
=>
this
.
props
.
navigation
.
navigate
(
'News Detail'
,
{
slug
:
this
.
state
.
slugs
[
index
]
})}
/
>
/
>
)
:
(
)
:
(
<
View
style
=
{{
height
:
this
.
state
.
slider_height
,
backgroundColor
:
'#838383'
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
height
:
this
.
state
.
slider_height
,
backgroundColor
:
'#838383'
,
justifyContent
:
'center'
}}
>
<
ActivityIndicator
size
=
"large"
color
=
"#c9af6d"
/>
<
ActivityIndicator
size
=
"large"
color
=
"#c9af6d"
/>
<
/View
>
<
/View
>
)
)
}
}
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -391,14 +391,34 @@ class Home extends React.Component {
...
@@ -391,14 +391,34 @@ class Home extends React.Component {
<
TouchableOpacity
<
TouchableOpacity
// style={styles.submitUpgradePemium}
// style={styles.submitUpgradePemium}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'TopUpInfo'
)}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
View
style
=
{{
flex
:
0.5
,
height
:
40
,
top
:
20
,
margin
:
5
,
marginLeft
:
-
10
,
paddingVertical
:
12
,
paddingHorizontal
:
10
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
TOP
UP
BALANCE
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
TOP
UP
BALANCE
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
// style={styles.submitUpgradePemium}
// style={styles.submitUpgradePemium}
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
_useBalance
()}
>
activeOpacity
=
{.
5
}
onPress
=
{()
=>
this
.
_useBalance
()}
>
<
View
style
=
{
styles
.
topUseBalance
}
>
<
View
style
=
{{
flex
:
0.5
,
height
:
40
,
top
:
20
,
margin
:
5
,
marginRight
:
-
10
,
paddingVertical
:
12
,
paddingHorizontal
:
24
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
}}
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
USE
BALANCE
<
/Text
>
<
Text
style
=
{{
textAlign
:
'center'
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
14
}}
>
USE
BALANCE
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
...
@@ -487,7 +507,7 @@ const styles = StyleSheet.create({
...
@@ -487,7 +507,7 @@ const styles = StyleSheet.create({
height
:
40
,
height
:
40
,
top
:
20
,
top
:
20
,
margin
:
5
,
margin
:
5
,
paddingVertical
:
12
,
paddingVertical
:
12
,
paddingHorizontal
:
16
,
paddingHorizontal
:
16
,
borderRadius
:
10
,
borderRadius
:
10
,
backgroundColor
:
'#CFB368'
,
backgroundColor
:
'#CFB368'
,
...
...
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