aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/navigation/AppNavigator.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/navigation/AppNavigator.js b/src/navigation/AppNavigator.js
new file mode 100644
index 0000000..6c5daf8
--- /dev/null
+++ b/src/navigation/AppNavigator.js
@@ -0,0 +1,21 @@
+import React from 'react';
+import { createStackNavigator } from '@react-navigation/stack';
+import LoginScreen from '../screens/Auth/LoginScreen';
+import MallSelectionScreen from '../screens/MallSelectionScreen';
+import ProductScannerScreen from '../screens/ProductScannerScreen';
+import CartScreen from '../screens/Cart/CartScreen';
+import CheckoutScreen from '../screens/Checkout/CheckoutScreen';
+
+const Stack = createStackNavigator();
+
+const AppNavigator = () => (
+ <Stack.Navigator initialRouteName="Login">
+ <Stack.Screen name="Login" component={LoginScreen} />
+ <Stack.Screen name="MallSelection" component={MallSelectionScreen} />
+ <Stack.Screen name="ProductScanner" component={ProductScannerScreen} />
+ <Stack.Screen name="Cart" component={CartScreen} />
+ <Stack.Screen name="Checkout" component={CheckoutScreen} />
+ </Stack.Navigator>
+);
+
+export default AppNavigator;