Commit cb8ad49b authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

dw

parent c4230eab
......@@ -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}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment