import React from 'react';
import { View, StyleSheet, Pressable, Text } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { usePathname } from 'expo-router';
import { Link } from 'expo-router';
const navItems = [
{
href: '/',
icon: 'home',
label: 'Home',
onPress: () => console.log("home"),
},
{
href: '/notify',
icon: 'edit-document',
label: 'Notify',
onPress: () => console.log("notify"),
},
{
href: '/explore',
icon: 'person',
label: 'Profile',
onPress: () => console.log("profile"),
},
];
const NavItem = ({ href, icon, label, onPress, isActive }) => (
{label}
);
export function Navbar() {
const pathName = usePathname();
return (
{navItems.map((item, index) => (
))}
);
}
const styles = StyleSheet.create({
navContainer: {
backgroundColor: "#396868",
paddingVertical: 10,
width: "100%",
flexDirection: "row",
justifyContent: "space-evenly",
},
navItem: {
alignItems: 'center',
},
icon: {
color: "#FFF",
active:{
color:"#"
}
},
textLink: {
color: "#FFF",
},
});