From a04296f395fb19bdeb8f37c8ac2bd3f21e74c709 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sat, 5 Oct 2024 08:38:10 +0200 Subject: [PATCH] fix: bottom overlapp --- app/(auth)/(tabs)/(home)/index.tsx | 54 +++++++++++++++++------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/app/(auth)/(tabs)/(home)/index.tsx b/app/(auth)/(tabs)/(home)/index.tsx index 2a2fc9fe..7f0fd2f6 100644 --- a/app/(auth)/(tabs)/(home)/index.tsx +++ b/app/(auth)/(tabs)/(home)/index.tsx @@ -5,6 +5,7 @@ import { ScrollingCollectionList } from "@/components/home/ScrollingCollectionLi import { Loader } from "@/components/Loader"; import { MediaListSection } from "@/components/medialists/MediaListSection"; import { Colors } from "@/constants/Colors"; +import { TAB_HEIGHT } from "@/constants/Values"; import { useDownload } from "@/providers/DownloadProvider"; import { apiAtom, userAtom } from "@/providers/JellyfinProvider"; import { useSettings } from "@/utils/atoms/settings"; @@ -367,33 +368,38 @@ export default function index() { contentContainerStyle={{ paddingLeft: insets.left, paddingRight: insets.right, + paddingBottom: 16, + }} + style={{ + marginBottom: TAB_HEIGHT, }} - className="flex flex-col space-y-4 mb-20" > - + + - {sections.map((section, index) => { - if (section.type === "ScrollingCollectionList") { - return ( - - ); - } else if (section.type === "MediaListSection") { - return ( - - ); - } - return null; - })} + {sections.map((section, index) => { + if (section.type === "ScrollingCollectionList") { + return ( + + ); + } else if (section.type === "MediaListSection") { + return ( + + ); + } + return null; + })} + ); }