-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
31 lines (29 loc) · 1012 Bytes
/
App.tsx
File metadata and controls
31 lines (29 loc) · 1012 Bytes
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
import React from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { ToastProvider } from 'react-native-toast-notifications';
import { store, persistor } from './src/redux/store';
import { NavigationContainer } from '@react-navigation/native';
import RootNavigator from './src/navigation/RootNavigator';
import { renderToast } from './src/components/Toast';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ToastProvider
renderToast={renderToast}
placement="bottom"
duration={3000}
>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NavigationContainer>
<RootNavigator />
</NavigationContainer>
</PersistGate>
</Provider>
</ToastProvider>
</GestureHandlerRootView>
);
}
export default App;