add article home, article list
This commit is contained in:
28
App.tsx
28
App.tsx
@@ -15,6 +15,8 @@ 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';
|
||||
|
||||
export default function App() {
|
||||
const isLoadingComplete = useCachedResources();
|
||||
@@ -104,6 +106,30 @@ const CartPage = ({ navigation }: { navigation: any }) => {
|
||||
);
|
||||
}
|
||||
|
||||
const ArticleHomePage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={ArticleHome}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const ArticleListPage = ({ navigation }: { navigation: any }) => {
|
||||
return (
|
||||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
name="homepage"
|
||||
component={ArticleList}
|
||||
options={HeaderAllPageOpion}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
const MainContentRouter = () => {
|
||||
return (
|
||||
<Drawer.Navigator>
|
||||
@@ -111,6 +137,8 @@ const MainContentRouter = () => {
|
||||
<Drawer.Screen name="Laptop, Máy Tính Xách Tay" component={ProductList} />
|
||||
<Drawer.Screen name="Trang san pham" component={ProductDetailRec} />
|
||||
<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.Navigator>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user