Repository navigation
Keep text fields above the keyboard on Android - #413
Merged
Merged
Conversation
On Android 15 and later the window no longer resizes for the keyboard (edge-to-edge), and these screens set KeyboardAvoidingView's behavior only on iOS, so the caption entry row, the project description sheet and other fields stayed behind the keyboard. They now use padding on both platforms, as the voiceover transcript sheet already does.
There was a problem hiding this comment.
🔵 Needs a closer look
Reported Android device checks cover only caption and description entry on a build combined with other open PRs, so they do not establish this PR’s behavior in isolation. Native keyboard and window-resize validation remains needed for Export, New project, AI edit, large text, and a second phone’s resize configuration; static review cannot settle those interactions.
No open issues 🎉
What changed in this PR
Addresses #409 by enabling keyboard-avoiding padding on Android across five text-entry screens, while preserving iOS behavior.
Changes:
- Uses
behavior="padding"on both platforms. - Removes unused
Platformimports. - Reports Pixel 6a validation for captions and descriptions; other affected flows and large-text checks remain unverified.
| File | Description |
|---|---|
src/features/project-summary/new-project-screen.tsx |
Enables Android keyboard padding for project creation. |
src/features/export/export-screen.tsx |
Enables Android keyboard padding for export. |
src/features/editor/editor-screen.tsx |
Enables Android keyboard padding for caption entry. |
src/features/editor/description-sheet.tsx |
Enables Android keyboard padding for description editing. |
src/features/ai-edit/ai-edit-screen.tsx |
Enables Android keyboard padding for AI editing. |
Review effort: Balanced
horner
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Evidence (Pixel 6a, Android 17 beta)
Before: the keyboard covers the caption you're typing.
413-before.mp4
After: the entry row sits above the keyboard.
413-after.mp4
After: the new project description sheet.
413-after-description.mp4
Fixes #409.
Part of #335.
Problem
On Android 15 and newer the keyboard covers text entry:
You can't see what you type or tap Done/Save until Back hides the keyboard.
Cause
With edge-to-edge, which Android 15 enforces and Expo SDK 57 turns on, the window no longer resizes for the keyboard. These screens set
KeyboardAvoidingView'sbehaviortopaddingon iOS and to nothing on Android, so on Android nothing moved.voiceover-transcript-sheet.tsxalready usedpaddingon both platforms.Change
behavior="padding"on both platforms in the five screens that used the iOS-only form:editor-screen.tsx(caption entry);description-sheet.tsx;export-screen.tsx;new-project-screen.tsx;ai-edit-screen.tsx.The now-unused
Platformimports are removed. iOS behavior is unchanged (it was alreadypadding).Checks
npx tsc --noEmit,npx tsc --noEmit -p embed,npm run lint, Prettier on the changed files: pass.npm run check:embed: pass.Bench
Pixel 6a, Android 17 beta, default text size. Build: main + the open sprint PRs + this change, as a JS bundle on the sprint test build.
Phone flow
Yes: text entry with the keyboard open on Android. The controls stay in the lower half, just above the keyboard. Checked on the Pixel 6a at default text size.
NOT RUN:
Risks
paddingwould add space twice. With Expo's edge-to-edge on every supported version, that shouldn't happen. Check the 2.10.1 build on a second Android phone if one is available.