-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoutes.tsx
29 lines (25 loc) · 938 Bytes
/
Routes.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
import { Router, Scene } from 'react-native-router-flux';
import TelaLogin from './assets/components/Login/TelaLogin';
import { NavigationContainer, useNavigation } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TelaCadastro from './assets/components/cadastro/TelaCadastro';
const Stack = createNativeStackNavigator();
function Routes() {
return (
//Funções e variáveis auxiliáres da página
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Login"
component={TelaLogin}
options={{ title: 'Login' }}
/>
<Stack.Screen
name="Cadastro"
component={TelaCadastro}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default Routes;