new featur

deskripsi:
- search user
- notifications
This commit is contained in:
2025-06-30 10:39:04 +08:00
parent 3849e03a1a
commit c1bee77629
8 changed files with 101 additions and 18 deletions

View File

@@ -3,8 +3,8 @@ import Spacing from "@/components/_ShareComponent/Spacing";
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
import { AccentColor, MainColor } from "@/constants/color-palet";
import { Ionicons } from "@expo/vector-icons";
import { Href, router } from "expo-router";
import React from "react";
import { Href, router, useNavigation } from "expo-router";
import React, { useEffect } from "react";
import {
Dimensions,
StyleSheet,
@@ -44,7 +44,7 @@ export default function NewHomeView() {
icon: "cart-outline",
activeIcon: "cart",
label: "Marketplace",
path: "/market-place",
path: "/marketplace",
isActive: false,
disabled: true,
},
@@ -86,6 +86,30 @@ export default function NewHomeView() {
</TouchableOpacity>
);
const navigation = useNavigation();
useEffect(() => {
navigation.setOptions({
// headerTitle: "HIPMI",
// headerLeft: () => (
// <Ionicons
// name="search"
// size={18}
// color={MainColor.white}
// onPress={() => router.push("/(application)/user-search")}
// />
// ),
// headerRight: () => (
// <Ionicons
// name="notifications"
// size={18}
// color={MainColor.white}
// onPress={() => router.push("/(application)/notifications")}
// />
// ),
});
}, [navigation]);
return (
<>
<ViewWrapper

View File

@@ -28,7 +28,7 @@ export default function Home_FeatureSection() {
</TouchableOpacity>
</View>
<View style={stylesHome.gridContainer}>
{/* <View style={stylesHome.gridContainer}>
<TouchableOpacity
style={stylesHome.gridItem}
onPress={() => router.push("/(application)/event")}
@@ -48,7 +48,7 @@ export default function Home_FeatureSection() {
<Ionicons name="heart" size={48} color="white" />
<Text style={stylesHome.gridLabel}>Crowdfunding</Text>
</TouchableOpacity>
</View>
</View> */}
</>
);
}