-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (22 loc) · 820 Bytes
/
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import HistoryScreen from "./src/screens/HistoryScreen";
import ManageScreen from "./src/screens/ManageScreen";
import StockScreen from "./src/screens/StockScreen";
import { AppProvider } from "./context/AppContext";
const Tab = createBottomTabNavigator();
function App() {
return (
<AppProvider>
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Stock" component={StockScreen} />
<Tab.Screen name="Config" component={ManageScreen} />
<Tab.Screen name="Historial" component={HistoryScreen} />
</Tab.Navigator>
</NavigationContainer>
</AppProvider>
);
}
export default App;