-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
40 lines (37 loc) · 1.11 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
38
39
40
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react'
import { AppRegistry } from 'react-native'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import ErrorUtils from './node_modules/react-native/Libraries/Core/ErrorUtils'
// import { composeWithDevTools } from 'redux-devtools-extension'
import {composeWithDevTools} from 'remote-redux-devtools'
import { createEpicMiddleware } from 'redux-observable'
import Navigation from './app/config/entry'
import rootEpic from './app/epics/index'
import rootReducer from './app/reducers/index'
console.disableYellowBox = true
ErrorUtils.setGlobalHandler((error) => {
console.log(error)
})
const epicMiddleware = createEpicMiddleware(rootEpic)
const store = createStore(
rootReducer,
composeWithDevTools(
applyMiddleware(epicMiddleware)
)
)
export default class marksman extends Component {
render () {
return (
<Provider store ={store}>
<Navigation />
</Provider>
)
}
}
AppRegistry.registerComponent('marksman', () => marksman)