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 MenuCategory from '../screens/MenuCategory'; import ProductDetail from '../screens/ProductDetail'; import { HeaderHome, HeaderCategory, HeaderProductDetail } from '../components/header/HeaderAllPage' const BottomTab = createBottomTabNavigator(); export default function BottomTabNavigator() { 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, } }} /> ); } 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 AllStack = createStackNavigator(); function AllStackNavigation() { return ( ); }