Closed IuliiaHerets closed 3 days ago
Triggered auto assignment to @stephanieelliott (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Scan tab shows a black background after swiping left to Distance, clicking Scan, and swiping left to Distance again.
On native platforms, the background color is calculated using the sum of position
and offset
, which are internal animation values.
These values weren’t meant for external use and didn't update properly during page switches, so we added a patch to fix this.
In this patch, position
is correctly set, but offset
is unchanged.
If position
is the index of the last tab and offset
> 0, their sum goes out of range, so the background interpolates to the wrong color.
Set both position
and offset
when a page is selected.
position.setValue(index);
offset.setValue(0);
Avoid using internal animation values in TabSelector
, which has already been done on web platforms in https://github.com/Expensify/App/pull/51020. The drawback is that the background won’t change gradually during tab sliding.
This is practically undetectable and only happens in dark mode. Seeing as it does not affect functionality I think this is not worth prioritizing.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.64-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y Email or phone of affected tester (no customers): applausetester+29302390@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
Scan tab will not have black background after swiping left to go to Distance.
Actual Result:
Scan tab shows black background after swiping left to go to Distance.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/0d97ef22-5e74-42e2-a327-4289db28e895
View all open jobs on GitHub