-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
36 lines (33 loc) · 1.03 KB
/
App.tsx
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import React from 'react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {Provider} from 'react-redux';
import {store} from './src/store';
import {Category, FoodDetails, Login} from './src/views';
import Home from './src/views/home/Home';
const Stack = createStackNavigator();
const StackNavigator = () => (
<Stack.Navigator screenOptions={{headerShown: false}}>
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Category" component={Category} />
<Stack.Screen name="FoodDetails" component={FoodDetails} />
</Stack.Navigator>
);
function App(): JSX.Element {
return (
<Provider store={store}>
<NavigationContainer>
<StackNavigator />
</NavigationContainer>
</Provider>
);
}
export default App;