mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +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,6 +53,8 @@ function SettingsSheetFrame({
|
|||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
<SafeAreaProvider>
|
||||||
|
<SafeAreaView style={{ flex: 1 }}>
|
||||||
<Sheet.Frame
|
<Sheet.Frame
|
||||||
backgroundColor="$playerSettingsBackground"
|
backgroundColor="$playerSettingsBackground"
|
||||||
padding="$5"
|
padding="$5"
|
||||||
@@ -68,6 +71,8 @@ function SettingsSheetFrame({
|
|||||||
)}
|
)}
|
||||||
{!isLoading && children}
|
{!isLoading && children}
|
||||||
</Sheet.Frame>
|
</Sheet.Frame>
|
||||||
|
</SafeAreaView>
|
||||||
|
</SafeAreaProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user