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:
1 parent
3c221330c2
commit
e53f77323a
3 files changed
+700
-621
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -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 +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"
|
||||
Reference in new issue
Block a user