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