import { Ionicons } from '@expo/vector-icons';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createStackNavigator } from '@react-navigation/stack';
import * as React from 'react';
import { BottomTabParamList, TabOneParamList, TabTwoParamList } from '../types';
import { Text, View } from '../components/Themed';
import Colors from '../constants/Colors';
import useColorScheme from '../hooks/useColorScheme';
import HomePage from '../screens/HomePage';
import ProductList from '../screens/ProductList';
import ProductHotList from '../screens/ProductHotList';
import MenuCategory from '../screens/MenuCategory';
import ProductDetail from '../screens/ProductDetail';
import Cart from '../screens/Cart';
import Login from '../screens/Login';
import ProductSearch from '../screens/ProductSearch';
import Register from '../screens/Register';
import ArticleHome from '../screens/ArticleHome';
import ArticleList from '../screens/ArticleList';
import ArticleDetail from '../screens/ArticleDetail';
import AccountHome from '../screens/AccountHome';
import ForgotPassword from '../screens/ForgotPassword';
import CartStep from '../screens/CartStep';
import CartPayInstallment from '../screens/CartPayInstallment';
import AccountIndex from '../screens/AccountIndex';
import SettingAccount from '../screens/SettingAccount';
import AccountOrderList from '../screens/AccountOrderList';
import AccountOrderDetail from '../screens/AccountOrderDetail';
import AccountProductBought from '../screens/AccountProductBought';
import AccountProductViewHistory from '../screens/AccountProductViewHistory';
import AccountProductFavorite from '../screens/AccountProductFavorite';
import AccountProductSave from '../screens/AccountProductSave';
import AccountCoin from '../screens/AccountCoin';
import CustomerInfo from '../screens/CustomerInfo';
import { HeaderHome, HeaderCategory, HeaderProductDetail, HeaderAllOtherPage, HeaderLogin } from '../components/header/HeaderAllPage'
export default function AllNavigator() {
const colorScheme = useColorScheme();
return (
);
}
// You can explore the built-in icon families and icons on the web at:
// https://icons.expo.fyi/
function TabBarIcon(props: { name: React.ComponentProps['name']; color: string }) {
return ;
}
// Each tab has its own navigation stack, you can read more about this pattern here:
// https://reactnavigation.org/docs/tab-based-navigation#a-stack-navigator-for-each-tab
const HomepageStack = createStackNavigator();
function HomePageNavigator({ navigation }: { navigation: any }) {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 100,
},
animationEnabled: true,
}}
/>
);
}
const MenuStack = createStackNavigator();
function MenuNavigation() {
return (
);
}
const ProductListStack = createStackNavigator();
function ProductListNavigator() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 100,
}
}}
/>
);
}
const ProductDetailStack = createStackNavigator();
function ProductDetailNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const CartStack = createStackNavigator();
function CartNavigation() {
return (
);
}
const CartStepStack = createStackNavigator();
function CartStepNavigation() {
return (
);
}
const CartPayInstallmentStack = createStackNavigator();
function CartPayInstallmentNavigation() {
return (
);
}
const AccountIndexStack = createStackNavigator();
function AccountIndexNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const LoginStack = createStackNavigator();
function LoginNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const RegisterStack = createStackNavigator();
function RegisterNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ProductSearchStack = createStackNavigator();
function ProductSearchNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ArticleHomeStack = createStackNavigator();
function ArticleHomeNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ArticleListStack = createStackNavigator();
function ArticleListNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ArticleDetailStack = createStackNavigator();
function ArticleDetailNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const AccountHomeStack = createStackNavigator();
function AccountHomeNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ProductHotListStack = createStackNavigator();
function ProductHotListNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const ForgotPasswordStack = createStackNavigator();
function ForgotPasswordNavigation() {
return (
(
),
headerStyle: {
backgroundColor: '#fff',
height: 80,
}
}}
/>
);
}
const SettingAccountStack = createStackNavigator();
function SettingAccountNavigation() {
return (
);
}
const AccountOrderListStack = createStackNavigator();
function AccountOrderListNavigation() {
return (
);
}
const AccountOrderDetailStack = createStackNavigator();
function AccountOrderDetailNavigation() {
return (
);
}
const AccountProductBoughtStack = createStackNavigator();
function AccountProductBoughtNavigation() {
return (
);
}
const AccountProductViewHistoryStack = createStackNavigator();
function AccountProductViewHistoryNavigation() {
return (
);
}
const AccountProductFavoriteStack = createStackNavigator();
function AccountProductFavoriteNavigation() {
return (
);
}
const AccountProductSaveStack = createStackNavigator();
function AccountProductSaveNavigation() {
return (
);
}
const AccountCoinStack = createStackNavigator();
function AccountCoinNavigation() {
return (
);
}
const CustomerInfoStack = createStackNavigator();
function CustomerInfoNavigation() {
return (
);
}
const BottomTab = createBottomTabNavigator();
function BottomTabNavigator() {
const colorScheme = useColorScheme();
return (
,
}}
/>
,
}}
/>
,
}}
/>
,
}}
/>
,
}}
/>
);
}
const AllStack = createStackNavigator();
function AllStackNavigation() {
return (
);
}