From 333ba165737df95a17b5df392acda3b18b29015a Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Sun, 4 Oct 2026 12:54:35 +0200 Subject: [PATCH] fix(mobile): iOS-Tastatur verdeckt Eingabefelder nicht mehr Profil bearbeiten (Geburtstag/Adoptionstag), Gesundheit, neuer Beitrag, neuer Meilenstein, Tier anlegen/Onboarding und Einladen hatten keinen Tastatur-Ausgleich: das fokussierte Feld lag unter der Tastatur. automaticallyAdjustKeyboardInsets setzt den unteren Inset und scrollt das aktive Feld in den sichtbaren Bereich (RN Fabric ScrollView), keyboardShouldPersistTaps="handled" laesst Feldwechsel ohne Zuklappen zu. Co-Authored-By: Claude Opus 5.5 --- mobile/app/(app)/invite.tsx | 6 +++++- mobile/app/(app)/milestone-new.tsx | 6 +++++- mobile/app/(app)/pets/[petId]/edit.tsx | 2 ++ mobile/app/(app)/pets/[petId]/health/index.tsx | 6 +++++- mobile/app/(app)/post-new.tsx | 6 +++++- mobile/app/onboarding/pet.tsx | 2 ++ 6 files changed, 24 insertions(+), 4 deletions(-) diff --git a/mobile/app/(app)/invite.tsx b/mobile/app/(app)/invite.tsx index ba426f0..5051fec 100644 --- a/mobile/app/(app)/invite.tsx +++ b/mobile/app/(app)/invite.tsx @@ -52,7 +52,11 @@ export default function InviteScreen() { } return ( - + {t("referrals.subtitle")} {!data.programActive && {t("referrals.programPaused")}} diff --git a/mobile/app/(app)/milestone-new.tsx b/mobile/app/(app)/milestone-new.tsx index 920eafc..3fea67e 100644 --- a/mobile/app/(app)/milestone-new.tsx +++ b/mobile/app/(app)/milestone-new.tsx @@ -88,7 +88,11 @@ export default function NewMilestoneScreen() { const isSubmitting = getPresignedUrlMutation.isPending || createMutation.isPending; return ( - + {t("milestones.typeLabel")} {USER_INITIATED_MILESTONE_TYPES.map((type) => { diff --git a/mobile/app/(app)/pets/[petId]/edit.tsx b/mobile/app/(app)/pets/[petId]/edit.tsx index fcb5e77..db925b6 100644 --- a/mobile/app/(app)/pets/[petId]/edit.tsx +++ b/mobile/app/(app)/pets/[petId]/edit.tsx @@ -126,6 +126,8 @@ export default function EditPetScreen() { data={EMPTY_DATA} renderItem={null} contentContainerStyle={[styles.container, bottomPadding]} + automaticallyAdjustKeyboardInsets + keyboardShouldPersistTaps="handled" ListHeaderComponent={ <> {t("editPet.nameLabel")} diff --git a/mobile/app/(app)/pets/[petId]/health/index.tsx b/mobile/app/(app)/pets/[petId]/health/index.tsx index 8416bf6..2919d1c 100644 --- a/mobile/app/(app)/pets/[petId]/health/index.tsx +++ b/mobile/app/(app)/pets/[petId]/health/index.tsx @@ -22,7 +22,11 @@ export default function PetHealthScreen() { const bottomPadding = useBottomSafePadding(); return ( - + diff --git a/mobile/app/(app)/post-new.tsx b/mobile/app/(app)/post-new.tsx index 18da4ff..a40e429 100644 --- a/mobile/app/(app)/post-new.tsx +++ b/mobile/app/(app)/post-new.tsx @@ -162,7 +162,11 @@ export default function NewPostScreen() { }; return ( - + {images.length > 0 && ( {images.map((img, i) => ( diff --git a/mobile/app/onboarding/pet.tsx b/mobile/app/onboarding/pet.tsx index d8e1e53..39514b6 100644 --- a/mobile/app/onboarding/pet.tsx +++ b/mobile/app/onboarding/pet.tsx @@ -79,6 +79,8 @@ export default function OnboardingPetScreen() { data={EMPTY_DATA} renderItem={null} contentContainerStyle={{ flexGrow: 1, backgroundColor: colors.porchWhite }} + automaticallyAdjustKeyboardInsets + keyboardShouldPersistTaps="handled" ListHeaderComponent={<>{content}} /> );