-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
51 lines (36 loc) · 1.04 KB
/
index.js
File metadata and controls
51 lines (36 loc) · 1.04 KB
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
43
44
45
46
47
48
49
50
51
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'remote-redux-devtools';
import ReduxThunk from 'redux-thunk';
// import Router from './src/Router';
import reducers from './src/reducers';
console.disableYellowBox = true;
class RNRedux extends Component {
render() {
const store = createStore(reducers, {}, composeWithDevTools(
applyMiddleware(ReduxThunk)
));
return (
<Provider store={store}>
<View style={styles.topContainer}>
<App />
</View>
</Provider>
);
}
}
const styles = {
topContainer: {
flex: 1,
backgroundColor: 'orange'
}
}
AppRegistry.registerComponent('lunchcrunch', () => RNRedux);
// import { AppRegistry } from 'react-native';
// import App from './src/App';
//
// AppRegistry.registerComponent('lunchcrunch', () => App);