Fix paid green marker for Native#50554
Merged
Merged
Conversation
|
@rushatgabhane 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] |
Member
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chrome |
rushatgabhane
approved these changes
Oct 15, 2024
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #50219 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
rushatgabhane
approved these changes
Oct 15, 2024
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
90 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.50-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.50-8 🚀
|
6 tasks
50 tasks
8 tasks
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.









Details
Expense preview does not display green checkmark when the expense is paid.
Technically what happened here - issue related to combination of re-renders threads and
useAnimatedStyle.useSharedValueis running in 2 threads - JS and UI. When we set a new value(from 0 to 1)- we store value in JS and tells UI thread that value can be used in styling.useAnimatedStyleis also running in 2 threads - JS and UI. Both of them initially stored{ scale: 0 }. When we set a new valueuseAnimatedStyleboth sync JS and UI thread and prepare on UI thread new styles - which ready to be used/painting - but - When we moving away to next screen - UI thread will be changed - anduseAnimatedStylewill lost/cancel animation styling. Technically we just still have correct useSharedValue value on JS thread - UI thread does not have those updates. To put those updates in UI thread - we need to reset useSharedValue to 0 and set again to 1 (to run again useAnimatedStyle hook with new value) - which is overkill.Correct solution here - just not rely on
useAnimatedStyleUI thread at all to build styling (because in our special case it will be destroyed during navigating to next screen). We can just rely on useSharedValue and use animation style directly in render.Fixed Issues
$ #50219
PROPOSAL:
Tests
Offline tests
Fix is not influence on offline pattern for that workflow
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
8mb.video-h8t-hXVUE9j8.mp4
Android: mWeb Chrome
8mb.video-nrn-Zof5zjmZ.mp4
iOS: Native
8mb.video-5sI-cdeKkVOh.mp4
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov