import { Link } from "expo-router"; import {FlatList, Image, SafeAreaView, Text, TouchableOpacity, View} from "react-native"; import images from "@/constants/images"; import icons from "@/constants/icons"; import Search from "@/components/Search"; import {useGlobalContext} from "@/lib/globalProvider"; import {Card, FeaturedCard} from "@/components/Cards"; import Filters from "@/components/Filters"; export default function Index() { // create func that determines the time od day [morning, evening, night] const {user, refetch} = useGlobalContext(); return ( ( )} keyExtractor={(item) => item.toString()} numColumns={2} contentContainerClassName={'pb-32'} columnWrapperClassName={'flex flex-row gap-5 px-5'} showsVerticalScrollIndicator={false} ListHeaderComponent={ good morning {user?.name} featured see all ( )} keyExtractor={(item) => item.toString()} horizontal={true} bounces={false} showsHorizontalScrollIndicator={false} contentContainerClassName={'flex gap-3 mt-5'} /> {/**/} {/* */} {/* */} {/**/} latest cars see all } /> ); }