aboutsummaryrefslogtreecommitdiffstats
path: root/src/navigation/AppNavigator.js
blob: 721886e35406095ac839ebc8439f4b33b0d28e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;