mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:33:26 +00:00
fix: settings sheet eating into notch (but now there's some leftover ugly bar that didn't move)
This commit is contained in:
@@ -42,7 +42,7 @@ const defineConfig = (): ExpoConfig => ({
|
|||||||
[
|
[
|
||||||
"expo-screen-orientation",
|
"expo-screen-orientation",
|
||||||
{
|
{
|
||||||
initialOrientation: "PORTRAIT_UP",
|
initialOrientation: "ALL",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import type { SheetProps, ViewProps } from "tamagui";
|
import type { SheetProps, ViewProps } from "tamagui";
|
||||||
|
import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
|
||||||
import {
|
import {
|
||||||
ScrollView,
|
ScrollView,
|
||||||
Separator,
|
Separator,
|
||||||
@@ -52,22 +53,26 @@ function SettingsSheetFrame({
|
|||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Sheet.Frame
|
<SafeAreaProvider>
|
||||||
backgroundColor="$playerSettingsBackground"
|
<SafeAreaView style={{ flex: 1 }}>
|
||||||
padding="$5"
|
<Sheet.Frame
|
||||||
gap="$4"
|
backgroundColor="$playerSettingsBackground"
|
||||||
>
|
padding="$5"
|
||||||
{isLoading && (
|
gap="$4"
|
||||||
<Spinner
|
>
|
||||||
size="large"
|
{isLoading && (
|
||||||
color="$loadingIndicator"
|
<Spinner
|
||||||
style={{
|
size="large"
|
||||||
position: "absolute",
|
color="$loadingIndicator"
|
||||||
}}
|
style={{
|
||||||
/>
|
position: "absolute",
|
||||||
)}
|
}}
|
||||||
{!isLoading && children}
|
/>
|
||||||
</Sheet.Frame>
|
)}
|
||||||
|
{!isLoading && children}
|
||||||
|
</Sheet.Frame>
|
||||||
|
</SafeAreaView>
|
||||||
|
</SafeAreaProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user