-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.js
30 lines (24 loc) · 991 Bytes
/
index.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
import * as React from 'react';
import { AppRegistry } from 'react-native';
import { StatusBar } from 'react-native';
import { createAppContainer } from 'react-navigation';
import { name as appName } from './app.json';
import MainNavigatorParent from 'containers/main/MainNavigator';
import MainNavigator from 'containers/main/MainNavigator.js';
import { createStore, combineReducers } from 'redux';
import { Provider, connect } from 'react-redux';
import colors from 'res/colors.js';
// import { store, persistor } from 'store';
import { store } from 'store';
import { PersistGate } from 'redux-persist/integration/react'
StatusBar.setBarStyle('light-content', true);
StatusBar.backgroundColor = '#000';
const Navigation = createAppContainer(MainNavigator);
const Root = () => (
<Provider store={store}>
{/* <PersistGate loading={null} persistor={persistor}> */}
<Navigation />
{/* </PersistGate> */}
</Provider>
)
AppRegistry.registerComponent(appName, () => Root);