From 724fc1e135850d9439abcba03df1cd288ca3593b Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Wed, 23 Oct 2024 06:05:20 +0700 Subject: [PATCH] fix: wrap `addonpage` in `safeareaview` --- src/core/ui/components/AddonPage.tsx | 44 +++++++++++++++------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/core/ui/components/AddonPage.tsx b/src/core/ui/components/AddonPage.tsx index 7122e39..fc59350 100644 --- a/src/core/ui/components/AddonPage.tsx +++ b/src/core/ui/components/AddonPage.tsx @@ -7,7 +7,7 @@ import isValidHttpUrl from "@lib/utils/isValidHttpUrl"; import { lazyDestructure } from "@lib/utils/lazy"; import { findByProps } from "@metro"; import { clipboard } from "@metro/common"; -import { Button, FlashList, FloatingActionButton, HelpMessage, IconButton, Stack, Text, TextInput } from "@metro/common/components"; +import { Button, FlashList, FloatingActionButton, HelpMessage, IconButton, SafeAreaView, Stack, Text, TextInput } from "@metro/common/components"; import { ErrorBoundary, Search } from "@ui/components"; import fuzzysort from "fuzzysort"; import { ComponentType, ReactNode, useCallback, useMemo } from "react"; @@ -181,26 +181,28 @@ export default function AddonPage({ CardComponent, ...props }: return ( - - - - Hmmm... could not find that! - - } - contentContainerStyle={{ padding: 8, paddingHorizontal: 12 }} - ItemSeparatorComponent={() => } - ListFooterComponent={props.ListFooterComponent} - renderItem={({ item }: any) => } - /> - {props.installAction && } + + + + + Hmmm... could not find that! + + } + contentContainerStyle={{ padding: 8, paddingHorizontal: 12 }} + ItemSeparatorComponent={() => } + ListFooterComponent={props.ListFooterComponent} + renderItem={({ item }: any) => } + /> + {props.installAction && } + ); }