-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
41 lines (35 loc) · 1.53 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Login from './src/components/login';
import TelaInicialAdmin from './src/components/Admin/TelaInicialAdmin';
import TelaInicialCliente from './src/components/Cliente/TelaInicialCliente';
import TelaDetalharCriptoAdmin from './src/components/Admin/TelaDetalharCriptoAdmin';
import { iniciarDatabase } from './src/services/SQLiteDatabase';
import TelaDetalharCriptoCliente from './src/components/Cliente/TelaDetalharCriptoCliente';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
options={{
headerShown: false,
}}
name="Login" component={Login}></Stack.Screen>
<Stack.Screen
name="TelaInicialCliente"
component={TelaInicialCliente}
options={{ headerShown: false, title: "Homescreen Cliente" }}>
</Stack.Screen>
<Stack.Screen
name="TelaInicialAdmin"
component={TelaInicialAdmin}
options={{ headerShown: false, title: "Homescreen Administrador" }}>
</Stack.Screen>
<Stack.Screen name="TelaDetalharCriptoAdmin" component={TelaDetalharCriptoAdmin}></Stack.Screen>
<Stack.Screen name="TelaDetalharCriptoCliente" component={TelaDetalharCriptoCliente}></Stack.Screen>
</Stack.Navigator>
</NavigationContainer >
);
}