diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:59 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:59 +0530 |
commit | c2b05c2ceca525de0382ed1133930f99cc5db33f (patch) | |
tree | a302dcf181bfc07059866209dfcec90d2e2833d2 /src/navigation | |
parent | 533a316f6588d53fefbf1826fdfcbf075800972c (diff) | |
download | mall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.tar.gz mall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.tar.bz2 mall-app-c2b05c2ceca525de0382ed1133930f99cc5db33f.zip |
Add navigation configuration files for app routing
Diffstat (limited to 'src/navigation')
-rw-r--r-- | src/navigation/AppNavigator.js | 21 |
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; |