-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
23 lines (21 loc) · 918 Bytes
/
App.js
File metadata and controls
23 lines (21 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import BookList from './BookList';
import BookDetailsScreen from './BookDetailsScreen';
import Login from './Login';
import Register from './Signup';
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen name="Login" component={Login} options={{ headerShown: false }}/>
<Stack.Screen name="Register" component={Register} options={{ headerShown: false }}/>
<Stack.Screen name="BookList" component={BookList} options={{ title: 'Book List' }} />
<Stack.Screen name="BookDetails" component={BookDetailsScreen} options={{ title: 'Book Details' }} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;