[No QA] [TS Migration] Migrate useReportScrollManager and ReportScreenContext to TypeScript#29315
Conversation
| } | ||
|
|
||
| flatListRef.current.scrollToIndex(index); | ||
| flatListRef.current.scrollToIndex({index}); |
There was a problem hiding this comment.
why this change?
If its necessary please make sure its not causing any regressions
There was a problem hiding this comment.
It's correct now - https://reactnative.dev/docs/flatlist#scrolltoindex
There was a problem hiding this comment.
But it wasn't correct before, and it can cause a regression. Please test it 🙌
| } | ||
|
|
||
| flatListRef.current.scrollToIndex(index); | ||
| flatListRef.current.scrollToIndex({index}); |
There was a problem hiding this comment.
But it wasn't correct before, and it can cause a regression. Please test it 🙌
|
@blazejkustra I updated the PR, I also checked for regressions and haven't found any, it scroll as expected, here is a proof: proof-compressed.mp4 |
|
@roryabraham 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] |
roryabraham
left a comment
There was a problem hiding this comment.
LGTM, awaiting C+ reviewer checklist
|
Put out a CTA for a C+ reviewer: https://expensify.slack.com/archives/C02NK2DQWUX/p1698089338027039 |
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeScreen.Recording.2023-10-26.at.11.19.12.AM.movMobile Web - SafariScreen.Recording.2023-10-26.at.11.17.50.AM.movDesktopScreen.Recording.2023-10-26.at.11.20.42.AM.moviOSScreen.Recording.2023-10-26.at.11.18.22.AM.movAndroidScreen.Recording.2023-10-26.at.11.20.04.AM.mov |
|
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #30413. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.93-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.93-1 🚀
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.94-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.94-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|

Details
Fixed Issues
$ #24949
PROPOSAL: N/A
Tests
N/A
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop