-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
29 lines (26 loc) · 842 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
29
import './src/config/reactotronConfig';
import React from 'react';
import {PersistGate} from 'redux-persist/integration/react';
import {Provider, useSelector} from 'react-redux';
import {StatusBar} from 'react-native';
import {Provider as PaperProvider} from 'react-native-paper';
import {appStore, appPersistor} from './src/appStore/appStore';
import createRouter from './routes';
function DevDoido() {
const signed = useSelector(state => state.auth.signed);
const Routes = createRouter(signed);
return <Routes />;
}
const App = () => {
return (
<Provider store={appStore}>
<PersistGate persistor={appPersistor}>
<StatusBar barStyle="light-content" backgroundColor="#fff" />
<PaperProvider>
<DevDoido />
</PaperProvider>
</PersistGate>
</Provider>
);
};
export default App;