-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation.js
More file actions
35 lines (27 loc) · 1.12 KB
/
Copy pathnavigation.js
File metadata and controls
35 lines (27 loc) · 1.12 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
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import Home from "./src/screens/Home"
import RestaurantDetail from "./src/screens/RestaurantDetail";
import { Provider as ReduxProvider } from "react-redux";
import configureStore from "./src/redux/store";
import OrderCompleted from "./src/screens/OrderCompleted";
const store = configureStore();
const RootNavigation = () => {
const Stack = createStackNavigator();
const screenOptions = {
headerShown: false,
}
return (
<ReduxProvider store={store}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" screenOptions={screenOptions}>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="RestaurantDetail" component={RestaurantDetail} />
<Stack.Screen name="OrderCompleted" component={OrderCompleted} />
</Stack.Navigator>
</NavigationContainer>
</ReduxProvider>
)
}
export default RootNavigation;