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:
1 parent
6ed2c16efa
commit
8db2dfd3da
1 file changed
+3
@@ -104,6 +104,8 @@ export default function AppLayout() {
|
|||||||
gestureDirection: "vertical",
|
gestureDirection: "vertical",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{/* Stack.Toolbar forces the header on, so keep it iOS-only. */}
|
||||||
|
{Platform.OS === "ios" ? (
|
||||||
<Stack.Toolbar placement="right">
|
<Stack.Toolbar placement="right">
|
||||||
<Stack.Toolbar.Button
|
<Stack.Toolbar.Button
|
||||||
icon="xmark"
|
icon="xmark"
|
||||||
@@ -111,6 +113,7 @@ export default function AppLayout() {
|
|||||||
onPress={() => router.back()}
|
onPress={() => router.back()}
|
||||||
/>
|
/>
|
||||||
</Stack.Toolbar>
|
</Stack.Toolbar>
|
||||||
|
) : null}
|
||||||
</Stack.Screen>
|
</Stack.Screen>
|
||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
name="create-account"
|
name="create-account"
|
||||||
|
|||||||
Reference in new issue
Block a user