-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
25 lines (24 loc) · 901 Bytes
/
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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, } from '@react-navigation/stack';
import HomeScreen from './screens/home/HomeScreen'
import CategoryItems from './screens/categoryitems/CategoryItems'
import Statistics from './screens/statistics/Statistics'
const Stack = createStackNavigator();
class App extends React.Component{
constructor(){
super()
}
render(){
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='Home'>
<Stack.Screen name="Home" component={HomeScreen} options={{ headerShown: false }}/>
<Stack.Screen name="Category Items" component={CategoryItems} />
<Stack.Screen name="Statistics" component={Statistics} />
</Stack.Navigator>
</NavigationContainer>
);
}
}
export default App;