-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
28 lines (25 loc) · 859 Bytes
/
App.tsx
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
import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { NavigationContainer } from '@react-navigation/native';
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import { PersistGate } from 'redux-persist/integration/react';
import { AppNavigation } from './src/navigations';
import IconFont from 'react-native-vector-icons/MaterialCommunityIcons';
import store from './src/store';
IconFont.loadFont();
const persistor = persistStore(store);
const App = () => {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<SafeAreaProvider>
<NavigationContainer>
<AppNavigation />
</NavigationContainer>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
};
export default App;