-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
37 lines (33 loc) · 1.18 KB
/
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
28
29
30
31
32
33
34
35
36
37
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { persistor, store } from './src/Redux/Store';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { RootNavigation } from './src/Navigation';
import Loading from './src/Components/UIComp/Loading';
import Toast from 'react-native-toast-message';
import { PaperProvider } from 'react-native-paper';
import ForceUpdate from './src/Components/ForceUpdate';
/**
* The main App component that sets up the root of the application.
* It includes the GestureHandlerRootView for gesture handling,
* the Redux Provider for state management, and the PersistGate
* for persisting the Redux store.
*
* @returns {JSX.Element} The root component of the application.
*/
const App = () => {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<Provider store={store}>
<PersistGate loading={<Loading />} persistor={persistor}>
<PaperProvider>
<RootNavigation />
<Toast />
<ForceUpdate />
</PaperProvider>
</PersistGate>
</Provider>
</GestureHandlerRootView>
);
};
export default App;