/**
 * React Native Full App (https://store.enappd.com/product/react-native-full-app)
 *
 * Copyright © 2019-present Enappd. All rights reserved.
 *
 * This source code is licensed as per the terms found in the
 * LICENSE.md file in the root directory of this source tree.
 */
import { createAppContainer } from 'react-navigation';
import HomeContainer from '../views/grocery/home/homeContainer';
import SearchContainer from '../views/grocery/search/searchContainer';
import ProductListContainer from '../views/grocery/productList/productListContainer';
import ProductDetailsContainer from '../views/grocery/productDetails/productDetailsContainer';
import ViewmoreListContainer from '../views/grocery/viemoreproductList/viewmoreListContainer';
import MycartContainer from '../views/grocery/MyCart/MyCartContainer';
import DeliveryContainerComponent from '../views/grocery/delivery/deliveryContainer';
import Checkoutcontainer from '../views/grocery/Checkout/CheckoutContainer';
import ModalExample from '../components/grocery/modal';
import MyAccountContainer from '../views/grocery/MyAccount/MyAccountContainer';
import LoginContainer from '../views/grocery/Login/loginContainer';
import VerificationContainer from '../views/grocery/otpVerification/verificationContainer';
import { createStackNavigator } from 'react-navigation-stack';
const AuthNavigation = createStackNavigator(
  {
    Login: { screen: LoginContainer },
    Verify: { screen: VerificationContainer },
  },
  {
    initialRouteName: 'Login',
    headerMode: 'none',
  }
);

const GroceryAuthNavigation = createAppContainer(AuthNavigation);

const AppNavigation = createStackNavigator(
  {
    GroceryHome: {
      screen: HomeContainer,
    },

    GrocerySearch: {
      screen: SearchContainer,
    },
    GroceryProducts: {
      screen: ProductListContainer,
    },
    GroceryProductdetails: {
      screen: ProductDetailsContainer,
    },
    GroceryViewmore: {
      screen: ViewmoreListContainer,
    },
    GroceryMycart: {
      screen: MycartContainer,
    },
    GroceryDeliveryDetails: {
      screen: DeliveryContainerComponent,
    },
    GroceryCheckout: {
      screen: Checkoutcontainer,
    },
    GroceryModal: {
      screen: ModalExample,
    },
    GroceryMyaccount: {
      screen: MyAccountContainer,
    },
  },
  {
    initialRouteName: 'GroceryHome',
    headerMode: 'none',
  }
);

const GroceryAppNavigation = createAppContainer(AppNavigation);

export { GroceryAuthNavigation, GroceryAppNavigation };
