From 267f72f84c6a5979eae696dae8fddee25188c1bb Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 15 Mar 2024 21:06:13 +0000 Subject: ui(mobile): New header style in the app --- apps/mobile/app/dashboard/(tabs)/lists.tsx | 45 +++++++++++++++++------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'apps/mobile/app/dashboard/(tabs)/lists.tsx') diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx index 2aece541..e0ed8489 100644 --- a/apps/mobile/app/dashboard/(tabs)/lists.tsx +++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx @@ -1,8 +1,9 @@ import { useEffect, useState } from "react"; -import { FlatList, View, Text, Pressable } from "react-native"; +import { FlatList, Pressable, SafeAreaView, Text, View } from "react-native"; import { Link } from "expo-router"; import { api } from "@/lib/trpc"; import { ChevronRight } from "lucide-react-native"; +import PageTitle from "@/components/ui/PageTitle"; export default function Lists() { const [refreshing, setRefreshing] = useState(false); @@ -47,24 +48,28 @@ export default function Lists() { ); return ( - ( - - - - {l.item.logo} {l.item.name} - - - - - )} - data={links} - refreshing={refreshing} - onRefresh={onRefresh} - /> + + + } + contentContainerStyle={{ + gap: 5, + }} + renderItem={(l) => ( + + + + {l.item.logo} {l.item.name} + + + + + )} + data={links} + refreshing={refreshing} + onRefresh={onRefresh} + /> + ); } -- cgit v1.2.3-70-g09d2