import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { Alert, Button, Image, StyleSheet, Dimensions, SafeAreaView, ScrollView, TouchableOpacity } from 'react-native'; import { Header, MainSeach } from './components/header/headerMain'; import useCachedResources from './hooks/useCachedResources'; import useColorScheme from './hooks/useColorScheme'; import Navigation from './navigation'; import { createDrawerNavigator, DrawerItemList, DrawerItem, DrawerContentScrollView } from '@react-navigation/drawer'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator, StackScreenProps } from '@react-navigation/stack'; import { Text, View, } from './components/Themed'; import TabOneScreen from './screens/TabOneScreen'; import TabTwoScreen from './screens/TabTwoScreen'; import ProductDetail from './screens/ProductDetail'; import CartDetail from './screens/Cart'; import ArticleHome from './screens/ArticleHome'; import ArticleList from './screens/ArticleList'; import ArticleDetail from './screens/ArticleDetail'; import Login from './screens/Login'; import Register from './screens/Register'; import ForgetPassword from './screens/ForgetPassword'; import AboutUs from './screens/AboutUs'; import ContactUs from './screens/ContactUs'; import BuildPc from './screens/BuildPc'; export default function App() { const isLoadingComplete = useCachedResources(); const colorScheme = useColorScheme(); if (!isLoadingComplete) { return null; } else { return ( ); } } const Drawer = createDrawerNavigator(); const Stack = createStackNavigator(); /* cài đặt thông số cho header */ const HeaderAllPageOpion = ({ navigation }: { navigation: any }) => { return ( { headerLeft: () => (
), headerTitle: () => ( ), headerStyle: { backgroundColor: '#3385ff', height: 130, } } ) } /* redirect về trang chủ */ const HomePage = ({ navigation }: { navigation: any }) => { return ( ); } /* redirect về danh mục */ const ProductList = ({ navigation }: { navigation: any }) => { return ( ); } const ProductDetailRec = ({ navigation }: { navigation: any }) => { return ( ); } const CartPage = ({ navigation }: { navigation: any }) => { return ( ); } const ArticleHomePage = ({ navigation }: { navigation: any }) => { return ( ); } const ArticleListPage = ({ navigation }: { navigation: any }) => { return ( ); } const ArticleDetailPage = ({ navigation }: { navigation: any }) => { return ( ); } const LoginPage = ({ navigation }: { navigation: any }) => { return ( ); } const RegisterPage = ({ navigation }: { navigation: any }) => { return ( ); } const ForgetPasswordPage = ({ navigation }: { navigation: any }) => { return ( ); } const AboutUsPage = ({ navigation }: { navigation: any }) => { return ( ); } const ContactUsPage = ({ navigation }: { navigation: any }) => { return ( ); } const BuildPcPage = ({ navigation }: { navigation: any }) => { return ( ); } const MainContentRouter = () => { return ( ); }