36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
/**
|
|
* Sample React Native App
|
|
* https://github.com/facebook/react-native
|
|
*
|
|
* Generated with the TypeScript template
|
|
* https://github.com/react-native-community/react-native-template-typescript
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import React from 'react';
|
|
import {Provider} from 'react-redux';
|
|
import store, {persistor} from './src/store/store';
|
|
import {PersistGate} from 'redux-persist/integration/react';
|
|
|
|
import {NavigationContainer} from '@react-navigation/native';
|
|
import {navigationRef} from './src/components/utlis/navigationUtlis';
|
|
import FullScreenLoader from './RN-UI-LIB/src/components/FullScreenLoader';
|
|
import ProtectedRouter from './ProtectedRouter';
|
|
|
|
const App = () => {
|
|
return (
|
|
<Provider store={store}>
|
|
<PersistGate
|
|
loading={<FullScreenLoader loading />}
|
|
persistor={persistor}>
|
|
<NavigationContainer ref={navigationRef}>
|
|
<ProtectedRouter />
|
|
</NavigationContainer>
|
|
</PersistGate>
|
|
</Provider>
|
|
);
|
|
};
|
|
|
|
export default App;
|