mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 06:25:42 -04:00
fix(native): keep Android headers from covering Upcoming filters and the modal Close button
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+6
-4
No files matched your search
@@ -130,15 +130,17 @@ export default function UpcomingScreen() {
|
|||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const isIOS = process.env.EXPO_OS === "ios";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack.Header
|
<Stack.Header
|
||||||
transparent
|
transparent={isIOS}
|
||||||
blurEffect="systemChromeMaterialDark"
|
blurEffect={isIOS ? "systemChromeMaterialDark" : undefined}
|
||||||
style={{
|
style={{
|
||||||
color: tintColor,
|
color: tintColor,
|
||||||
shadowColor: "transparent",
|
shadowColor: "transparent",
|
||||||
backgroundColor: process.env.EXPO_OS === "ios" ? undefined : backgroundColor,
|
backgroundColor: isIOS ? undefined : backgroundColor,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Stack.Screen.Title style={headerTitleStyle as Record<string, unknown>}>
|
<Stack.Screen.Title style={headerTitleStyle as Record<string, unknown>}>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export function ModalLayout({ children }: { children: ReactNode }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View className="bg-background flex-1">
|
<View className="bg-background flex-1">
|
||||||
<Stack.Header transparent blurEffect="none" />
|
<Stack.Header hidden={process.env.EXPO_OS !== "ios"} transparent blurEffect="none" />
|
||||||
{process.env.EXPO_OS === "ios" && (
|
{process.env.EXPO_OS === "ios" && (
|
||||||
<Stack.Toolbar placement="right">
|
<Stack.Toolbar placement="right">
|
||||||
<Stack.Toolbar.Button onPress={() => dismissAll()}>
|
<Stack.Toolbar.Button onPress={() => dismissAll()}>
|
||||||
|
|||||||
Reference in new issue
Block a user