-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
29 lines (26 loc) · 878 Bytes
/
App.js
File metadata and controls
29 lines (26 loc) · 878 Bytes
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 React from "react";
import DrawerNav from "./src/router";
import {Provider} from "react-redux";
import store from "./src/store";
import {GET_ACCESS_TOKEN} from "./src/flow/types";
import {persistStore} from "redux-persist";
import {PersistGate} from "redux-persist/integration/react";
import {StatusBar} from "react-native";
import {styleVariables} from "./src/common/styles";
const persistor = persistStore(store);
store.dispatch({type: GET_ACCESS_TOKEN});
const App = (props) => (
<Provider store={store}>
<PersistGate
loading={null}
persistor={persistor}>
<StatusBar
barStyle="dark-content"
translucent={false}
backgroundColor={styleVariables.headerColor}
/>
<DrawerNav {...props} />
</PersistGate>
</Provider>
);
export default App;