From c4d7223115865474f09661cdbfee60a559f4b2c2 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 15 Mar 2024 18:19:09 +0000 Subject: fix(mobile): Scroll to the top when the main tab is clicked --- apps/mobile/app/dashboard/(tabs)/lists.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'apps/mobile/app') diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx index 92ae1c93..2aece541 100644 --- a/apps/mobile/app/dashboard/(tabs)/lists.tsx +++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import { FlatList, View } from "react-native"; +import { FlatList, View, Text, Pressable } from "react-native"; import { Link } from "expo-router"; import { api } from "@/lib/trpc"; import { ChevronRight } from "lucide-react-native"; @@ -53,12 +53,14 @@ export default function Lists() { marginTop: 5, }} renderItem={(l) => ( - - - {l.item.logo} {l.item.name} - - - + + + + {l.item.logo} {l.item.name} + + + + )} data={links} refreshing={refreshing} -- cgit v1.2.3-70-g09d2