-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
25 lines (22 loc) · 797 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
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {PersistGate} from 'redux-persist/integration/react';
import {Provider} from 'react-redux';
import {persistor, store} from './src/store/store';
import RNBootSplash from 'react-native-bootsplash';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import AppNavigator from './src/navigation/AppNavigator';
function App(): React.JSX.Element {
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<SafeAreaProvider>
<NavigationContainer onReady={() => RNBootSplash.hide({fade: true})}>
<AppNavigator />
</NavigationContainer>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
}
export default App;