-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (25 loc) · 976 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
import { StatusBar } from 'expo-status-bar'
import React from 'react'
import * as eva from '@eva-design/eva';
import { ApplicationProvider, IconRegistry, Spinner } from '@ui-kitten/components';
import store from './src/redux/store'
import { persistStore } from 'redux-persist'
import { PersistGate } from 'redux-persist/integration/react'
import { Provider } from 'react-redux'
import { EvaIconsPack } from '@ui-kitten/eva-icons';
import { default as theme } from './src/components/custom-theme.json'
import Entry from './src/components';
const persistor = persistStore(store)
export default function App() {
return (
<Provider store={store}>
<IconRegistry icons={EvaIconsPack} />
<ApplicationProvider {...eva} theme={{ ...eva.dark, ...theme }}>
<PersistGate loading={<Spinner />} persistor={persistor}>
<Entry />
<StatusBar barStyle="light-content" />
</PersistGate>
</ApplicationProvider>
</Provider >
)
}