aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 16:18:59 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 16:18:59 +0530
commitc2b05c2ceca525de0382ed1133930f99cc5db33f (patch)
treea302dcf181bfc07059866209dfcec90d2e2833d2 /src
parent533a316f6588d53fefbf1826fdfcbf075800972c (diff)
downloadmall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.tar.gz
mall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.tar.bz2
mall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.zip
Add navigation configuration files for app routing
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;