From f718ed5b05ac82336237f9323e963b112673d403 Mon Sep 17 00:00:00 2001
From: thesn10 <38666407+thesn10@users.noreply.github.com>
Date: Thu, 2 Jul 2026 22:48:06 +0200
Subject: [PATCH] Add Home screen
---
app/src/app/(tabs)/index.tsx | 79 ++++++++++++++++--------------------
1 file changed, 34 insertions(+), 45 deletions(-)
diff --git a/app/src/app/(tabs)/index.tsx b/app/src/app/(tabs)/index.tsx
index 17ca7a9..abf1553 100644
--- a/app/src/app/(tabs)/index.tsx
+++ b/app/src/app/(tabs)/index.tsx
@@ -1,52 +1,41 @@
-import { Button, Card, Typography, useThemeColor } from "heroui-native";
import type { JSX } from "react";
-import { View } from "react-native";
-import Svg, { Path } from "react-native-svg";
-
-function HeroUILogo({ tintColor }: { tintColor: string }): JSX.Element {
- return (
-
- );
-}
+import { ScrollView, View } from "react-native";
+import { useRouter } from "expo-router";
+import { Button, Typography } from "heroui-native";
+import { PRODUCTS } from "@/data/mock";
+import { ListingCard } from "@/components/ListingCard";
export default function HomeTab(): JSX.Element {
- const themeColorForeground = useThemeColor("foreground");
+ const router = useRouter();
+ const featured = PRODUCTS.filter((product) => product.qty > 0).slice(0, 4);
return (
-
-
-
-
- A modern starter for React Native, preconfigured with HeroUI Native, Uniwind, and Expo
- Router. Edit{" "}
-
- app/(tabs)/index.tsx
- {" "}
- and watch it reload.
-
-
-
-
+
+
+
+ {"The marketplace\n"}
+
+ nobody controls.
+
+
+
+ Buy and sell freely. Payments are final — no chargebacks, no frozen accounts.
+
+
+
+
+
+
+ Featured listings
+
+
+ {featured.map((product) => (
+
+ ))}
+
+
+
);
}