-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
23 lines (20 loc) · 768 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
import * as React from "react";
import { View, Text } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Auth from "./pages/Auth";
import Home from "./pages/Home";
import ProductDetail from "./pages/ProductDetail";
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="AuthPage" component={Auth} />
<Stack.Screen name="ProductDetailPage" component={ProductDetail} />
<Stack.Screen name="HomePage" component={Home} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;