-
Notifications
You must be signed in to change notification settings - Fork 14
/
App.js
34 lines (30 loc) · 827 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
import React from 'react';
import { StyleSheet } from 'react-native';
import {createStore, combineReducers} from "redux";
import {Provider} from "react-redux";
import AppContainer from "./Navigation/NavigationConfig"
import ProductsReducers from "./Store/Reducers/ProductsReducers";
import CartReducers from "./Store/Reducers/CartReducers";
const RootReducer = combineReducers({
products : ProductsReducers,
cartItems : CartReducers,
itemsCount : CartReducers ,
wishListItems : CartReducers
});
const store = createStore(RootReducer);
const App = () => {
// console.log(store.products);
return (
<Provider store={store}>
<AppContainer/>
</Provider>
);
};
const styles = StyleSheet.create({
main:{
flex:1,
justifyContent:"center",
alignItems: "center"
}
});
export default App;