-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.js
25 lines (25 loc) · 937 Bytes
/
navigation.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
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import Home from "./screens/Home";
import ResturantDetail from "./screens/ResturantDetail";
import { Provider as ReducxProvider } from "react-redux";
// import store from "./redux/store";
import configureStore from "./redux/store";
const store = configureStore();
export default function RootNavigation(params) {
const Stack = createStackNavigator();
const screenOptions = {
headerShown: false,
};
return (
<ReducxProvider store={store}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" screenOptions={screenOptions}>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="RestaurantDetail" component={ResturantDetail} />
</Stack.Navigator>
</NavigationContainer>
</ReducxProvider>
);
}