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 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-04 12:54:35 +02:00
1 parent 9136981af7
commit 333ba16573
6 files changed
+24 -4

No files matched your search

+5 -1
View File
@@ -52,7 +52,11 @@ export default function InviteScreen() {
}
return (
<ScrollView contentContainerStyle={[styles.content, bottomPadding]}>
<ScrollView
contentContainerStyle={[styles.content, bottomPadding]}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
>
<Text style={styles.subtitle}>{t("referrals.subtitle")}</Text>
{!data.programActive && <Text style={styles.notice}>{t("referrals.programPaused")}</Text>}
+5 -1
View File
@@ -88,7 +88,11 @@ export default function NewMilestoneScreen() {
const isSubmitting = getPresignedUrlMutation.isPending || createMutation.isPending;
return (
<ScrollView contentContainerStyle={styles.container}>
<ScrollView
contentContainerStyle={styles.container}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
>
<Text style={styles.label}>{t("milestones.typeLabel")}</Text>
<View style={styles.chipRow}>
{USER_INITIATED_MILESTONE_TYPES.map((type) => {
+2
View File
@@ -126,6 +126,8 @@ export default function EditPetScreen() {
data={EMPTY_DATA}
renderItem={null}
contentContainerStyle={[styles.container, bottomPadding]}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
ListHeaderComponent={
<>
<Text style={styles.label}>{t("editPet.nameLabel")}</Text>
@@ -22,7 +22,11 @@ export default function PetHealthScreen() {
const bottomPadding = useBottomSafePadding();
return (
<ScrollView contentContainerStyle={[styles.container, bottomPadding]}>
<ScrollView
contentContainerStyle={[styles.container, bottomPadding]}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
>
<HealthConsentGate petId={petId}>
<WeightLogSection petId={petId} />
<VetVisitSection petId={petId} />
+5 -1
View File
@@ -162,7 +162,11 @@ export default function NewPostScreen() {
};
return (
<ScrollView contentContainerStyle={styles.container}>
<ScrollView
contentContainerStyle={styles.container}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
>
{images.length > 0 && (
<View style={styles.grid}>
{images.map((img, i) => (
+2
View File
@@ -79,6 +79,8 @@ export default function OnboardingPetScreen() {
data={EMPTY_DATA}
renderItem={null}
contentContainerStyle={{ flexGrow: 1, backgroundColor: colors.porchWhite }}
automaticallyAdjustKeyboardInsets
keyboardShouldPersistTaps="handled"
ListHeaderComponent={<>{content}</>}
/>
);