-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (33 loc) · 1007 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
31
32
33
34
35
36
37
38
39
40
41
42
import React, { Component } from 'react';
import { AppRegistry, View, StatusBar } from 'react-native';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import matchReducers from './app/reducers/matches';
import Navigator from './app/navigator.js';
import SocketIOClient from 'socket.io-client';
let store = createStore(
combineReducers({
matches: matchReducers
}),
applyMiddleware(thunk)
);
export default class Recon extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<Provider store={store}>
<View style={{flex: 1}}>
<StatusBar
barStyle="light-content"
/>
<Navigator />
</View>
</Provider>
);
}
}
AppRegistry.registerComponent('recon', () => Recon);