fix remaining header-related issues

This commit is contained in:
ppc
2025-07-29 15:50:20 +01:00
parent ab766de83a
commit 130e4c3789
2 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -114,7 +114,12 @@ export default function AppRoot() {
{/* main app */}
<Stack.Screen name="app" component={AppContent} options={{headerShown: false}}/>
<Stack.Group screenOptions={{presentation: "modal"}}>
<Stack.Group screenOptions={{
presentation: "modal",
headerTitleStyle: {
fontWeight: "bold"
}
}}>
<Stack.Screen name="add-server" component={ServerAddModal} options={{title: "Add Server"}}/>
<Stack.Screen name="add-card" component={CardAddModal} options={{title: "Add Card", headerShown: Platform.OS !== 'ios'}}/>
<Stack.Screen name="edit-card" component={CardEditorModal} options={{title: "Edit Card"}}/>
+4 -2
View File
@@ -14,7 +14,7 @@ const Stack = createNativeStackNavigator();
function CardAddModal() {
return (
<Stack.Navigator initialRouteName="Select">
<Stack.Navigator initialRouteName="Select" screenOptions={{headerTitleStyle: {fontWeight: "bold"}}}>
<Stack.Screen name="Select" component={CardAddMethodSelector} options={{headerShown: false}}/>
<Stack.Screen name="Scan" component={PhysicalCardScan} options={{title: "Add Physical Card"}}/>
@@ -34,7 +34,9 @@ function CardAddMethodSelector({navigation}) {
return (
<View style={{paddingHorizontal: 15, paddingTop: 90, gap: 8}}>
<View style={{paddingBottom: 25, gap: 5}}>
<Text variant="titleLarge" style={{textAlign: "center", fontSize: 32, fontWeight: "bold"}}>Add new Card</Text>
<Text variant="titleLarge" style={{textAlign: "center", fontSize: 32, lineHeight: 32, fontWeight: "bold"}}>
Add new Card
</Text>
<Text variant="bodyMedium" style={{textAlign: "center"}}>
AMNet supports scanning physical cards, entering details manually or generating new ones.
</Text>