Open nyomanjyotisa opened 10 hours ago
@rojiphil 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]
The reason I changed the onPress
code is that the pressableRef?.current?.blur()
call was being evaluated during the render phase. This happened because Session.checkIfActionIsAllowed()
was executed immediately as part of the onPress
. The change ensures that ref.current
is accessed during runtime (when the button is pressed) instead of during render
Explanation of Change
Fixed Issues
$ https://github.com/Expensify/App/issues/52128 PROPOSAL: https://github.com/Expensify/App/issues/52128#issuecomment-2460365285
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
https://github.com/user-attachments/assets/7e9fcbfc-1522-46bf-86fe-03ce685a337eAndroid: mWeb Chrome
https://github.com/user-attachments/assets/2fa5302e-88d0-42dc-9c7c-ec8d2f11fe04iOS: Native
https://github.com/user-attachments/assets/d4092720-e8ee-4b63-aea2-f5563d9ad427iOS: mWeb Safari
https://github.com/user-attachments/assets/1f36ac1d-983e-46c9-bfe8-0fa212d379acMacOS: Chrome / Safari
https://github.com/user-attachments/assets/aba086fb-aec7-48c6-9845-ae8bf84ec0daMacOS: Desktop
https://github.com/user-attachments/assets/abb9fa97-1914-4ef9-affc-bb51d7946ce1