28 lines
995 B
TypeScript
28 lines
995 B
TypeScript
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';
|
|
import { toastConfigs, ToastContainer } from './RN-UI-LIB/src/components/toast';
|
|
|
|
const App = () => {
|
|
return (
|
|
<Provider store={store}>
|
|
<PersistGate
|
|
loading={<FullScreenLoader loading />}
|
|
persistor={persistor}>
|
|
<NavigationContainer ref={navigationRef}>
|
|
<ProtectedRouter />
|
|
</NavigationContainer>
|
|
{<ToastContainer config={toastConfigs} position='bottom' />}
|
|
</PersistGate>
|
|
</Provider>
|
|
);
|
|
};
|
|
|
|
export default App;
|