fix: use KeyboardAvoidingView behavior="padding" on Android (#6)

edge-to-edge mode disables classic adjustResize, so behavior must be
"padding" on both platforms to push content above the keyboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
le king fu 2026-03-01 12:25:30 -05:00
parent fe7bda4747
commit 9835f9ef18
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ export default function TaskDetailScreen() {
</View>
</View>
<KeyboardAvoidingView className="flex-1" behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
<KeyboardAvoidingView className="flex-1" behavior="padding">
<ScrollView ref={scrollRef} className="flex-1 px-4 pt-4" keyboardShouldPersistTaps="handled">
{/* Title */}
<TextInput

View file

@ -150,7 +150,7 @@ export default function NewTaskScreen() {
</Pressable>
</View>
<KeyboardAvoidingView className="flex-1" behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
<KeyboardAvoidingView className="flex-1" behavior="padding">
<ScrollView ref={scrollRef} className="flex-1 px-4 pt-4" keyboardShouldPersistTaps="handled">
{/* Title */}
<TextInput