-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
37 lines (34 loc) · 850 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
35
36
37
import React from 'react';
// import {View} from 'react-native';
//Redux
import {createStore, combineReducers, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import ReduxThunk from 'redux-thunk';
import {composeWithDevTools} from 'redux-devtools-extension';
import AppNavigation from './src/navigation';
import {
UserReducer,
FirstOpenReducer,
OtpReducer,
WithoutUserReducer,
BannerReducer,
} from './src/redux';
const rootReducer = combineReducers({
user: UserReducer,
firstOpenApp: FirstOpenReducer,
otp: OtpReducer,
withoutUser: WithoutUserReducer,
banners: BannerReducer,
});
const store = createStore(
rootReducer,
composeWithDevTools(applyMiddleware(ReduxThunk)),
);
const App = () => {
return (
<Provider store={store}>
<AppNavigation />
</Provider>
);
};
export default App;