-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
35 lines (31 loc) · 1.21 KB
/
App.tsx
File metadata and controls
35 lines (31 loc) · 1.21 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 { Provider } from "react-redux";
import store from "./redux/store";
import { View, Text, StyleSheet, Button } from 'react-native';
import ListOfRestaurantView from "./views/listOfRestaurantView";
import RestaurantView from "./views/restaurantView";
import MapView from "./views/MapView";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
export default function App() {
const Stack = createNativeStackNavigator();
return (
<Provider store={store}>
<View style={styles.rootContainer}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={MapView} options={{ headerShown: false }} />
<Stack.Screen name="ListOfRestaurantView" component={ListOfRestaurantView} options={{ headerShown: false }} />
<Stack.Screen name="RestaurantView" component={RestaurantView} options={{ headerShown: false }} />
</Stack.Navigator>
</NavigationContainer>
</View>
</Provider>
);
}
const styles = StyleSheet.create({
rootContainer: {
backgroundColor: "#FCF9F2",
flex: 1
}
})