fix keyboard overlap composer#44428
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-29.at.00.26.50.movAndroid: mWeb ChromeScreen.Recording.2024-06-29.at.00.29.01.moviOS: NativeScreen.Recording.2024-06-29.at.00.32.57.moviOS: mWeb SafariScreen.Recording.2024-06-29.at.00.32.04.movMacOS: Chrome / SafariScreen.Recording.2024-06-29.at.00.35.30.movMacOS: DesktopScreen.Recording.2024-06-29.at.00.36.06.mov |
There was a problem hiding this comment.
The callback methods have to be named for what the method does so we have to update callback func ST like that
| onLayout={reportActionItemEventHandler.onLayout(reportScrollManager, index)} | |
| onLayout={reportActionItemEventHandler.handleComposerLayoutChange(reportScrollManager, index)} |
There was a problem hiding this comment.
@suneox I have updated this change as you suggested. Can you check it?
There was a problem hiding this comment.
For my understanding. Why do we only import the index.android part?
There was a problem hiding this comment.
hi @puneetlath My mistake, auto-import in my IDE. I have updated it. Can you check it again?
There was a problem hiding this comment.
Don't we typically just import like this?
| import reportActionItemEventHandler from '@libs/ReportActionItemEventHandler/index'; | |
| import reportActionItemEventHandler from '@libs/ReportActionItemEventHandler'; |
There was a problem hiding this comment.
I updated it as you suggested. Do you have any more feedback?
|
@huult looks like you have some unsigned commits, so that check is failing. |
|
Hi @puneetlath , @suneox , I have fixed everything. Can you double-check? Thank you! |
|
Some commits are still un-signed. |
e57c19e to
7e0c8a6
Compare
|
Hi @puneetlath , Sorry for that. My signing tool had an error, so the merges on my branch were not signed. I rebased the commits into one and resolved the signing issue. Could you please check it again? |
|
Ok cool thanks. @suneox mind giving it a quick re-review/test? And then I can final-review/merge. |
Sure, I'll test again on all platform in few hours |
|
@huult Could you please merge latest main to fix an issue patch-package when install package? |
7e0c8a6 to
50a4af1
Compare
|
@suneox it's done |
|
@puneetlath I have tested it, and it still works on the latest main branch. Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-02.at.13.00.50.movAndroid: mWeb ChromeScreen.Recording.2024-07-02.at.13.07.31.moviOS: NativeScreen.Recording.2024-07-02.at.13.12.24.moviOS: mWeb SafariScreen.Recording.2024-07-02.at.13.15.23.movMacOS: Chrome / SafariScreen.Recording.2024-07-02.at.12.56.57.movMacOS: DesktopScreen.Recording.2024-07-02.at.12.58.47.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.4-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
| } | ||
| setShouldShowComposeInputKeyboardAware(true); | ||
| }} | ||
| onLayout={reportActionItemEventHandler.handleComposerLayoutChange(reportScrollManager, index)} |
There was a problem hiding this comment.
This caused the app to automatically scroll to the edit input instead of the bottom of the list. We have applied the fix here. #70219
Details
Fixed Issues
$ #43615
PROPOSAL: #43615 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen_Recording_20240627_200038_New.Expensify.Dev.mp4
Android: mWeb Chrome
Screen.Recording.2024-06-26.at.10.26.30.mov
iOS: Native
Screen.Recording.2024-06-26.at.00.15.59.mov
iOS: mWeb Safari
Screen.Recording.2024-06-26.at.09.44.06.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-26.at.13.20.52.mov
MacOS: Desktop
Screen.Recording.2024-06-26.at.00.23.38.mov