-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
36 lines (29 loc) · 965 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import { Provider } from 'react-redux'
import store from './src/redux/store'
import { initAxiosInterceptors } from './src/helpers/helper'
import { StatusBar } from 'expo-status-bar';
import { AppLoading } from 'expo';
import Router from './src/router/Router'
import * as eva from '@eva-design/eva';
import { ApplicationProvider, IconRegistry } from '@ui-kitten/components';
import { useFonts, VarelaRound_400Regular } from '@expo-google-fonts/varela-round'
import { EvaIconsPack } from '@ui-kitten/eva-icons';
initAxiosInterceptors()
export default function App() {
let [fontsLoaded] = useFonts({
VarelaRound_400Regular,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<Provider store={store}>
<IconRegistry icons={EvaIconsPack} />
<ApplicationProvider {...eva} theme={eva.light}>
<Router />
<StatusBar style="auto" />
</ApplicationProvider>
</Provider>
);
}