fix(mobile): hide the native settings header on Android

Stack.Toolbar turns the header on, which stacked a second title bar
above the custom one on Android. Render it on iOS only.

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 6ed2c16efa
commit 8db2dfd3da
1 file changed
+10 -7
+10 -7
View File
@@ -104,13 +104,16 @@ export default function AppLayout() {
gestureDirection: "vertical", gestureDirection: "vertical",
}} }}
> >
<Stack.Toolbar placement="right"> {/* Stack.Toolbar forces the header on, so keep it iOS-only. */}
<Stack.Toolbar.Button {Platform.OS === "ios" ? (
icon="xmark" <Stack.Toolbar placement="right">
accessibilityLabel="Close settings" <Stack.Toolbar.Button
onPress={() => router.back()} icon="xmark"
/> accessibilityLabel="Close settings"
</Stack.Toolbar> onPress={() => router.back()}
/>
</Stack.Toolbar>
) : null}
</Stack.Screen> </Stack.Screen>
<Stack.Screen <Stack.Screen
name="create-account" name="create-account"