-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
29 lines (24 loc) · 918 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
import configureStore from './src/store/configureStore'
import { AppRegistry } from 'react-native';
import {Provider} from 'react-redux';
import React, {Component} from 'react';
//import App from './src/App';
import AppWithNavigator from './src/navigator'
import {loadCalendar} from "./src/actions/loadCalendarActions";
import {updateToday} from './src/actions/updateTodayAction'
import {loadTrelloLists} from "./src/actions/loadTrelloActions";
//import loadGreeting from './src/actions/loadGreetingActions'
const store = configureStore();
store.dispatch(loadCalendar());
store.dispatch(loadTrelloLists());
setTimeout(() => store.dispatch(updateToday()), 60000);
class AppWithStore extends Component {
render(){
return(
<Provider store={store}>
<AppWithNavigator />
</Provider>
)
}
}
AppRegistry.registerComponent('Tablet2SOA', () => AppWithStore);