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
c466856b
Commit
c466856b
authored
Jun 15, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loading bar muncul, setiap bolak balik dari halaman lain
parent
16805722
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Outlets.js
view/Outlets.js
+10
-2
RewardsList.js
view/RewardsList.js
+3
-0
No files found.
view/Outlets.js
View file @
c466856b
...
@@ -37,7 +37,11 @@ class Outlets extends React.Component {
...
@@ -37,7 +37,11 @@ class Outlets extends React.Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
_getOutletClosest
()
this
.
OrderedList
()
this
.
_getPermissions
()
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
this
.
setState
({
this
.
setState
({
indicator
:
true
,
indicator
:
true
,
...
@@ -49,6 +53,10 @@ class Outlets extends React.Component {
...
@@ -49,6 +53,10 @@ class Outlets extends React.Component {
}
}
componentWillUnmount
()
{
this
.
_unsubscribe
()
}
_getPermissions
=
async
()
=>
{
_getPermissions
=
async
()
=>
{
let
{
status
}
=
await
Permissions
.
askAsync
(
Permissions
.
LOCATION
);
let
{
status
}
=
await
Permissions
.
askAsync
(
Permissions
.
LOCATION
);
if
(
status
!==
'granted'
)
{
if
(
status
!==
'granted'
)
{
...
@@ -176,7 +184,7 @@ class Outlets extends React.Component {
...
@@ -176,7 +184,7 @@ class Outlets extends React.Component {
let
outletName
=
res
.
data
.
data
.
outlet_name
let
outletName
=
res
.
data
.
data
.
outlet_name
this
.
setState
({
this
.
setState
({
indicator
:
false
,
//
indicator: false,
data_name
:
outletName
data_name
:
outletName
})
})
...
...
view/RewardsList.js
View file @
c466856b
...
@@ -17,6 +17,9 @@ class RewardsList extends React.Component {
...
@@ -17,6 +17,9 @@ class RewardsList extends React.Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
getRewardsList
()
this
.
getRewardsList
()
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
this
.
_unsubscribe
=
this
.
props
.
navigation
.
addListener
(
'focus'
,
()
=>
{
this
.
setState
({
indicator
:
true
})
this
.
getRewardsList
()
this
.
getRewardsList
()
});
});
...
...
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