-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2021-12-13] Android - Status bar changes color when the app is loading at launch #6284
Comments
Triggered auto assignment to @nkuoch ( |
As requested by @isagoico |
Proposal
<color name="white">#FAFAFA</color>
<item name="android:statusBarColor">@color/white</item>
<item name="android:windowLightStatusBar">true</item>
ResultScreen_Recording_20211113-113125_New.Expensify.mp4 |
Triggered auto assignment to @trjExpensify ( |
@mallenexpensify you wanted to be tagged in this issue once created. Anything to add, or can I get this to Upwork? (Popping back on |
@trjExpensify I've assigned myself as I'd like to review this one and test it on a few different Android versions. @kakajann's proposal looks good to me, so once this is on UpWork please hire @kakajann |
@trjExpensify , please post to Upwork, thanks |
Donezo! Upwork job is up here for you @kakajann: https://www.upwork.com/jobs/~01fd7b70aadc2f612c @mdneyazahmad can you also apply, so I can pay you out the $250 for reporting the issue. 👍 |
This solution removes the styling posibility from react layer and next time you want to change the status bar theme/color you will have to fix this on android level which defeats the purpose of using react native. Hardcoding this on a lower layer is just a patch not a solution. Also this will be a huge bottleneck if you ever decide to use darkmode or change the background color of the main body. I don't mean to be critical but I would not accept this solution as a bugfix. It will only open more problems further down the line. |
@trjExpensify applied on upwork |
I don't think it removes any styling possibilities. As mentioned in the issue, the status bar color changes only when you launch the app and it is caused by So, you'll have to change this <item name="android:statusBarColor">@color/white</item>
<item name="android:windowLightStatusBar">true</item> whenever you change the splash screen. And you can do anything you want to the status bar once the app is mounted. Here's the documentation: https://reactnative.dev/docs/next/statusbar#methods And I really don't think the react-native is meant to be only Javascript code. You can customize the native codes as well. |
@emonidi thanks for your comments, but in this case I think the native solution is fine. This status bar UI bug is a common issue in native Android dev, and fixing it here is the simplest solution IMO. We have a lot more control by setting Android styles/themes here, and not every case can be handled at the RN layer -- we often need to make changes to native code. |
After looking at it deeper I realized what the problem is and my criticism was out of place. @kakajann you are right this in that case is possibly the best solution. |
@Julesssss PR is ready to review |
Merged, awaiting payment. |
Hi @kakajann, sorry but I now realize I set the payment date to 7 days after the merge, instead of deployment (which happened 3 days ago). Resetting the timer. |
Actally, we have a bot for this now ❤️ |
Reminding the Upwork again |
Paid 👍 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.17-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2021-12-13. 🎊 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Status bar should not change colors while the app is loading
Actual Result:
Status bar changes colors from grey to white while the app is loading
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
Version Number: 1.1.14-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
New.Expensify.mp4
Expensify/Expensify Issue URL:
Issue reported by: Neyaz Ahmad
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1636652626134800
View all open jobs on GitHub
CC @mallenexpensify @Julesssss
The text was updated successfully, but these errors were encountered: