-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (30 loc) · 954 Bytes
/
App.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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import 'react-native-gesture-handler';
import React from 'react';
import { Provider } from 'react-redux';
import { composeWithDevTools } from 'redux-devtools-extension'
import { createStore, applyMiddleware, combineReducers } from 'redux';
import NavigationContainer from './src/navigation/NavigationContainer';
import thunk from 'redux-thunk';
import promise from 'redux-promise';
import { createLogger } from 'redux-logger'
import searchReducer from './src/store/reducers/search';
const rootReducer = combineReducers({
search: searchReducer
});
const logger = createLogger({ collapsed: true });
const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk, promise, logger)));
const App = () => {
return (
<Provider store={store}>
<NavigationContainer />
</Provider>
);
};
export default App;