-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
26 lines (23 loc) · 822 Bytes
/
App.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
import React from "react";
import HomeScreen from "./src/screens/HomeScreen";
import ViewProfitsScreen from "./src/screens/ViewProfitsScreen";
import ViewExpensesScreen from "./src/screens/ViewExpensesScreen";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
const Stack = createStackNavigator();
const App: React.FC = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ headerShown: false }}
/>
<Stack.Screen name="Despesas" component={ViewExpensesScreen} />
<Stack.Screen name="Ganhos" component={ViewProfitsScreen} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;