-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
28 lines (26 loc) · 936 Bytes
/
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
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';
/**
* 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}>
<RootNavigation />
</PersistGate>
</Provider>
</GestureHandlerRootView>
);
};
export default App;