padding for apple tv

Adding some more padding for tvos to clear the top

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
Lance Chant
2026-05-22 12:39:59 +02:00
parent b076f9f3d9
commit 5fd8e40c44

View File

@@ -378,14 +378,16 @@ export const TVHeroCarousel: React.FC<TVHeroCarouselProps> = ({
if (items.length === 0) return null;
// Extra top padding for tvOS to clear the menu bar
const tvosTopPadding = Platform.OS === "ios" ? scaleSize(30) : 0;
const heroHeight = SCREEN_HEIGHT * sizes.padding.heroHeight;
return (
<View
style={{
height: heroHeight + insets.top,
height: heroHeight + insets.top + tvosTopPadding,
width: "100%",
paddingTop: insets.top,
paddingTop: insets.top + tvosTopPadding,
}}
>
{/* Backdrop layers with crossfade */}