-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
27 lines (25 loc) · 848 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
import {NavigationContainer} from '@react-navigation/native';
import {persistor, store} from '@redux/store';
import {navigationRef} from '@services/NavService';
import React from 'react';
import 'react-native-gesture-handler';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import Toast from 'react-native-toast-message';
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import Routes from './src/routes';
const App = () => {
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<SafeAreaProvider>
<NavigationContainer ref={navigationRef}>
<Routes />
<Toast position={'bottom'} />
</NavigationContainer>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
};
export default App;