-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (31 loc) · 978 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
30
31
32
33
34
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 {darken} from 'polished';
import {appStore, appPersistor} from './src/appStore/appStore';
import createRouter from './routes';
import {appColors} from './src/utils/appColors';
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={darken(0.2, appColors.primary)}
/>
<PaperProvider>
<DevDoido />
</PaperProvider>
</PersistGate>
</Provider>
);
};
export default App;