fix: settings sheet eating into notch (but now there's some leftover ugly bar that didn't move)

This commit is contained in:
Adrian Castro
2024-03-20 13:55:37 +01:00
parent e3d252708d
commit 9c232fd838
2 changed files with 22 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
import type { SheetProps, ViewProps } from "tamagui";
import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
import {
ScrollView,
Separator,
@@ -52,22 +53,26 @@ function SettingsSheetFrame({
isLoading?: boolean;
}) {
return (
<Sheet.Frame
backgroundColor="$playerSettingsBackground"
padding="$5"
gap="$4"
>
{isLoading && (
<Spinner
size="large"
color="$loadingIndicator"
style={{
position: "absolute",
}}
/>
)}
{!isLoading && children}
</Sheet.Frame>
<SafeAreaProvider>
<SafeAreaView style={{ flex: 1 }}>
<Sheet.Frame
backgroundColor="$playerSettingsBackground"
padding="$5"
gap="$4"
>
{isLoading && (
<Spinner
size="large"
color="$loadingIndicator"
style={{
position: "absolute",
}}
/>
)}
{!isLoading && children}
</Sheet.Frame>
</SafeAreaView>
</SafeAreaProvider>
);
}