aboutsummaryrefslogblamecommitdiffstats
path: root/src/navigation/AppNavigator.js
blob: 721886e35406095ac839ebc8439f4b33b0d28e7a (plain) (tree)
1
2
3
4

                                                               

                                                                           










                                                                   

                                                                           







                                                                           
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import SignupScreen from '../screens/Auth/SignupScreen';
import ForgotPasswordScreen from '../screens/Auth/ForgotPasswordScreen.js';
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="ForgotPassword" component={ForgotPasswordScreen} />
    <Stack.Screen name="Signup" component={SignupScreen} />
    <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;