Fix: Enable keyboard avoiding view for Odometer tab on distance request page#83580
Fix: Enable keyboard avoiding view for Odometer tab on distance request page#83580
Conversation
…st page The ScreenWrapper in DistanceRequestStartPage had shouldEnableKeyboardAvoidingView set to false for all tabs. This was fine for Map and Manual tabs which don't use native keyboard TextInputs, but the Odometer tab has TextInput fields that trigger the keyboard. With keyboard avoidance disabled, the Next button was hidden behind the keyboard and unreachable. This change makes shouldEnableKeyboardAvoidingView conditional — it is enabled only when the Odometer tab is selected, keeping behavior unchanged for other tabs. Co-authored-by: DylanDylann <DylanDylann@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
@MelvinBot Please merge the latest main and mark this PR as ready |
…boardAvoidingView Co-authored-by: DylanDylann <DylanDylann@users.noreply.github.com>
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Done! I've merged the latest |
Reviewer Checklist
Screenshots/Videos
|
|
@codex review |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.28-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|

Explanation of Change
The
ScreenWrapperinDistanceRequestStartPagehadshouldEnableKeyboardAvoidingViewhardcoded tofalsefor all tabs. This was originally appropriate for the Map and Manual tabs (which don't use native keyboard TextInputs), but the newer Odometer tab hasTextInputfields for Start/End readings that trigger the native keyboard. With keyboard avoidance disabled, the Next button was hidden behind the keyboard and unreachable on iOS and Android.This change makes
shouldEnableKeyboardAvoidingViewconditional — it is enabled only when the Odometer tab (CONST.TAB_REQUEST.DISTANCE_ODOMETER) is selected, keeping behavior unchanged for all other tabs (Map, Manual, GPS).Fixed Issues
$ #82647
Tests
Offline tests
N/A — This is a UI layout fix for keyboard avoidance. The Odometer tab requires online access to submit, so offline behavior is unchanged.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari