Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
d0705063
Commit
d0705063
authored
May 20, 2021
by
Nguyễn Thị Thúy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update notify
parent
f0cfb2a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
RootView.js
src/RootView.js
+6
-14
No files found.
src/RootView.js
View file @
d0705063
...
...
@@ -14,11 +14,6 @@ import DeviceInfo from 'react-native-device-info';
import
R
from
'./assets/R'
;
import
{
WIDTHXD
,
HEIGHTXD
}
from
'./Config/Functions'
;
import
DropdownManager
from
'./components/DropdownAlert/DropdownManager'
;
import
AsyncStorage
from
'@react-native-community/async-storage'
;
import
KEY
from
'./assets/AsynStorage'
;
import
I18n
,
{
setLocation
}
from
'./helper/i18/i18n'
;
import
{
changeLanguage
}
from
'./actions/language'
;
enableScreens
();
...
...
@@ -28,16 +23,11 @@ const RootView = (props) => {
dropDownAlertRef
.
current
,
dropDownAlertLongTimeRef
.
current
,
);
setInitLanguage
()
},
[]);
const
dropDownAlertRef
=
useRef
(
null
);
const
dropDownAlertLongTimeRef
=
useRef
(
null
);
const
setInitLanguage
=
async
()
=>
{
const
laguage
=
await
AsyncStorage
.
getItem
(
KEY
.
LANGUAGE
);
if
(
laguage
)
props
.
changeLanguage
(
laguage
);
setLocation
(
I18n
,
laguage
);
};
return
(
<>
<
View
style
=
{{
flex
:
1
}}
>
...
...
@@ -57,10 +47,11 @@ const RootView = (props) => {
closeInterval
=
{
1000
}
ref
=
{
dropDownAlertRef
}
warnColor
=
{
R
.
colors
.
orange400
}
updateStatusBar
=
{
false
}
defaultContainer
=
{{
borderBottomRightRadius
:
WIDTHXD
(
30
),
borderBottomLeftRadius
:
WIDTHXD
(
30
),
paddingTop
:
HEIGHTXD
(
3
0
),
paddingTop
:
HEIGHTXD
(
9
0
),
paddingVertical
:
HEIGHTXD
(
30
),
paddingHorizontal
:
WIDTHXD
(
20
),
}}
...
...
@@ -76,10 +67,11 @@ const RootView = (props) => {
closeInterval
=
{
600000
}
ref
=
{
dropDownAlertLongTimeRef
}
warnColor
=
{
R
.
colors
.
orange400
}
updateStatusBar
=
{
false
}
defaultContainer
=
{{
borderBottomRightRadius
:
WIDTHXD
(
30
),
borderBottomLeftRadius
:
WIDTHXD
(
30
),
paddingTop
:
HEIGHTXD
(
3
0
),
paddingTop
:
HEIGHTXD
(
9
0
),
paddingVertical
:
HEIGHTXD
(
30
),
paddingHorizontal
:
WIDTHXD
(
20
),
}}
...
...
@@ -95,4 +87,4 @@ const mapStateToProps = (state) => {
};
};
export
default
connect
(
mapStateToProps
,
{
changeLanguage
})(
RootView
);
export
default
connect
(
mapStateToProps
,
{})(
RootView
);
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