-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (30 loc) · 1.12 KB
/
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
38
39
import "react-native-gesture-handler";
import * as React from "react";
import { Provider } from "react-redux";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { applyMiddleware, combineReducers, createStore } from "redux";
import ReduxThunk from "redux-thunk";
import LoginNavigation from "./navigation/#Navigation";
import MenuHomeNavigation from "./navigation/MenuHomeNavigation";
import authReducer from "./store/reducers/auth";
import filmReducer from "./store/reducers/film";
const Stack = createStackNavigator();
const rootReducer = combineReducers({
auth: authReducer,
film: filmReducer,
});
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
const App = (props) => {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator headerMode="none">
<Stack.Screen name="Login" component={LoginNavigation} />
<Stack.Screen name="MenuHome" component={MenuHomeNavigation} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
};
export default App;