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