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
cb8ad49b
Commit
cb8ad49b
authored
May 13, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dw
parent
c4230eab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
App.js
App.js
+14
-4
No files found.
App.js
View file @
cb8ad49b
...
...
@@ -16,13 +16,25 @@ import { Text, View } from 'react-native';
import
{
AppLoading
}
from
'expo'
;
import
*
as
Font
from
'expo-font'
;
function
useFonts
(
fontMap
)
{
let
[
fontsLoaded
,
setFontsLoaded
]
=
useState
(
false
);
(
async
()
=>
{
await
Font
.
loadAsync
(
fontMap
);
setFontsLoaded
(
true
);
})();
return
[
fontsLoaded
];
}
export
const
lang
=
i18n
.
translations
=
{
en
:
en
,
id
:
id
}
export
const
set_lang
=
i18n
.
locale
=
Localization
.
locale
;
export
const
fallbacks
=
i18n
.
fallbacks
=
true
;
export
const
set_lang
=
i18n
.
locale
=
Localization
.
locale
;
export
const
fallbacks
=
i18n
.
fallbacks
=
true
;
const
persistConfig
=
{
key
:
'root'
,
...
...
@@ -33,8 +45,6 @@ const persistReducers = persistReducer(persistConfig, rootReducer)
const
store
=
createStore
(
persistReducers
);
const
persistor
=
persistStore
(
store
)
i18n
.
locale
=
Localization
.
locale
;
export
default
function
App
()
{
return
(
<
Provider
store
=
{
store
}
>
...
...
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