-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
37 lines (30 loc) · 1.09 KB
/
index.ios.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
35
36
37
import React, { Component } from 'react';
import {
AppRegistry,
Text,
View,
StatusBar
} from 'react-native'
import AppNavigator from 'mrticktock/app/navigation/AppNavigator'
import AppInit from 'mrticktock/app/boot/AppInit'
import StyleVars from 'mrticktock/app/styles/StyleVars'
import StatusBarBackground from 'mrticktock/app/components/StatusBarBackground'
import { Provider } from 'react-redux'
import reducers from 'mrticktock/app/reducers'
import { createStore, applyMiddleware } from 'redux'
import ReduxPromise from 'redux-promise'
import ViewContainer from 'mrticktock/app/components/ViewContainer'
const createStoreWithMiddleware = applyMiddleware(ReduxPromise)(createStore);
class mrticktock extends Component {
render() {
return (
<Provider store={createStoreWithMiddleware(reducers)}>
<ViewContainer>
<StatusBarBackground style={{ backgroundColor: StyleVars.Colors.white }} />
<AppNavigator initialRoute={{ ident: "AppInit" }} />
</ViewContainer>
</Provider>
)
}
}
AppRegistry.registerComponent('mrticktock', () => mrticktock);