-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
37 lines (29 loc) · 917 Bytes
/
Copy pathapp.js
File metadata and controls
37 lines (29 loc) · 917 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
26
27
28
29
30
31
32
33
34
35
36
37
// App.js
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import LoginScreen from './screens/LoginScreen';
import RegisterScreen from './Screens/RegisterScreen';
import ContactsScreen from './src/screens/ContactsScreen';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen
name="Login"
component={LoginScreen}
options={{ title: 'Login' }}
/>
<Stack.Screen
name="Register"
component={RegisterScreen}
options={{ title: 'Registro' }}
/>
<Stack.Screen
name="Contacts"
component={ContactsScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}