-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
20 lines (19 loc) · 655 Bytes
/
App.js
File metadata and controls
20 lines (19 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from "react";
import Home from "./components/Home";
import Scanner from "./components/Scanner";
import History from "./components/History";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Scanner" component={Scanner} />
<Stack.Screen name="History" component={History} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;