diff --git a/app/(root)/(tabs)/index.tsx b/app/(root)/(tabs)/index.tsx index 9ff08e0..766d1fd 100644 --- a/app/(root)/(tabs)/index.tsx +++ b/app/(root)/(tabs)/index.tsx @@ -1,79 +1,93 @@ -import { Link } from "expo-router"; -import {FlatList, Image, SafeAreaView, Text, TouchableOpacity, View} from "react-native"; +//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 { 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(); + // 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={ + + } + keyExtractor={(item) => item.toString()} + numColumns={2} + contentContainerClassName={"pb-32"} + columnWrapperClassName={"flex flex-row gap-5 px-5"} + showsVerticalScrollIndicator={false} + ListHeaderComponent={ + + + + + + good morning + {user?.name} + + + + - - - - - - good morning - {user?.name} - - - - + + + + + featured + + + + see all + + + + } + keyExtractor={(item) => item.toString()} + horizontal={true} + bounces={false} + showsHorizontalScrollIndicator={false} + contentContainerClassName={"flex gap-3 mt-5"} + /> + {/**/} + {/* */} + {/* */} + {/**/} + - - - - featured - - see all - - - ( - - )} - keyExtractor={(item) => item.toString()} - horizontal={true} - bounces={false} - showsHorizontalScrollIndicator={false} - contentContainerClassName={'flex gap-3 mt-5'} - /> - {/**/} - {/* */} - {/* */} - {/**/} - - - - latest cars - - see all - - - - - - - - - - } - /> - + + + latest cars + + + see all + + + + + + + + + } + /> + ); }