feat(mobile): rework settings layout

Move the section pills to the bottom, add a close button (native on
iOS), pair save actions with their inputs as icon buttons, and merge
streaming quality and spatial audio into one group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
joshuafhigginsandClaude Opus 5.5 committed 2026-11-20 10:25:34 -05:00
1 parent d7d476e5ec
commit a17bbddf83
3 files changed
+700 -621

No files matched your search

File diff suppressed because it is too large. Load diff
+16 -2
View File
@@ -87,15 +87,29 @@ export default function AppLayout() {
<Stack.Screen
name="settings"
options={{
headerShown: Platform.OS === "android",
// iOS gets a native header with a close button; Android
// draws its own title bar in the screen.
headerShown: Platform.OS === "ios",
title: "Settings",
headerLargeTitle: false,
headerTransparent: false,
headerShadowVisible: false,
headerStyle: { backgroundColor: "#000" },
presentation:
Platform.OS === "ios" ? "modal" : "fullScreenModal",
animation: "slide_from_bottom",
gestureEnabled: true,
gestureDirection: "vertical",
}}
/>
>
<Stack.Toolbar placement="right">
<Stack.Toolbar.Button
icon="xmark"
accessibilityLabel="Close settings"
onPress={() => router.back()}
/>
</Stack.Toolbar>
</Stack.Screen>
<Stack.Screen
name="create-account"
options={{
+1 -16
View File
@@ -1,16 +1 @@
import { Platform } from "react-native"
import { SafeAreaView } from "react-native-safe-area-context"
import SettingsScreen from "./(tabs)/home/settings"
export default function Settings() {
if (Platform.OS !== "android") return <SettingsScreen />
return (
<SafeAreaView
edges={["bottom", "left", "right"]}
style={{ flex: 1, backgroundColor: "#000" }}
>
<SettingsScreen />
</SafeAreaView>
)
}
export { default } from "./(tabs)/home/settings"