them chi tiet tin tuc, dang ky, dang nhap, gioi thieu, lien he, build pc
This commit is contained in:
101
App.tsx
101
App.tsx
@@ -17,6 +17,16 @@ 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();
|
||||
@@ -130,6 +140,90 @@ const ArticleListPage = ({ navigation }: { navigation: any }) => {
|
||||
);
|
||||
}
|
||||
|
||||
const ArticleDetailPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={ArticleDetail}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const LoginPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={Login}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const RegisterPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={Register}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const ForgetPasswordPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={ForgetPassword}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const AboutUsPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={AboutUs}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const ContactUsPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={ContactUs}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const BuildPcPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={BuildPc}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const MainContentRouter = () => {
|
||||
return (
|
||||
<Drawer.Navigator>
|
||||
@@ -139,6 +233,13 @@ const MainContentRouter = () => {
|
||||
<Drawer.Screen name="cart" component={CartPage} />
|
||||
<Drawer.Screen name="Tin tức" component={ArticleHomePage} />
|
||||
<Drawer.Screen name="Tin khuyến mại" component={ArticleListPage} />
|
||||
<Drawer.Screen name="Chi tiết tin" component={ArticleDetailPage} />
|
||||
<Drawer.Screen name="Đăng nhập" component={LoginPage} />
|
||||
<Drawer.Screen name="Đăng Ký" component={RegisterPage} />
|
||||
<Drawer.Screen name="Quên mật khẩu" component={ForgetPasswordPage} />
|
||||
<Drawer.Screen name="Giới thiệu" component={AboutUsPage} />
|
||||
<Drawer.Screen name="Liên hệ" component={ContactUsPage} />
|
||||
<Drawer.Screen name="Xây dựng cấu hình" component={BuildPcPage} />
|
||||
</Drawer.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user