-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
28 lines (23 loc) · 1.41 KB
/
App.jsx
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
import { NavigationContainer } from '@react-navigation/native';
import * as React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import VehiclesScreen from './screens/exhibition/VehiclesScreen.tsx';
import { SupplyScreen } from './screens/exhibition/SupplyScreen.tsx';
import NewVehicleScreen from './screens/creation/NewVehicleScreen.tsx';
import { NewSupplyScreen } from './screens/creation/NewSupplyScreen.tsx';
import { ConsumptionScreen } from './screens/exhibition/ConsumptionScreen.tsx';
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer >
<Stack.Navigator initialRouteName='VehicleScreen' screenOptions={{headerTintColor: '#999999', headerStyle: {backgroundColor: "#111111"}, headerTitleAlign: "center"}}>
<Stack.Screen name='VehiclesScreen' component={VehiclesScreen} options={{headerTitle: "Veículos",}}/>
<Stack.Screen name='NewVehicleScreen' component={NewVehicleScreen} options={{title: "Cadastro de Veículo"}}/>
<Stack.Screen name='SupplyScreen' component={SupplyScreen} options={{headerTitle: "Abastecimento"}}/>
<Stack.Screen name="NewSupplyScreen" component={NewSupplyScreen} options={{title: "Abastecer"}}/>
<Stack.Screen name="ConsumptionScreen" component={ConsumptionScreen} options = {{title: "Consumo"}}/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;