-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRoutes.js
More file actions
25 lines (21 loc) · 872 Bytes
/
Routes.js
File metadata and controls
25 lines (21 loc) · 872 Bytes
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 * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Home from './src/screen/Home/index';
import Details from './src/screen/Details/index';
import About from './src/screen/About/index';
import HeaderComponent from './src/components/HeaderComponent/index';
const Stack = createStackNavigator();
function Routes() {
return (
<NavigationContainer>
<Stack.Navigator>
{/* <Stack.Screen name="Home" component={Home} options={{ headerTitle: props => <HeaderComponent {...props} /> }}/> */}
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Details" component={Details} />
<Stack.Screen name="About" component={About} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default Routes;