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:
parent
fe7bda4747
commit
9835f9ef18
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue