-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix Header Bouncing on start (Android) #3610
Conversation
Oh. Sorry for the Misunderstanding here. I guess we all got it wrong. The issue was that the Report header(where you can see concierge and back) was jumping. And I believe translucency had no effect on it. Why do I know this? I reported this issue. Moreover, I am not able to reproduce this issue anymore. One more point, if you look closely the Status bar color is light gray which is different from the LHN(sidebar). We wanted to have the same color as the background. So imagine this, the Sidebar has a red color so the status bar should be red. The setting page has green color thus status bar should have a green color. cc: @shawnborton Could you please confirm that what I said in the above para, is correct or not? |
Hey @parasharrajat! Thanks for jumping in.
Looks like one of the merged PR's made so that the app no longer opens in the last chat screen after being force closed. This makes the issue harder to reproduce, but the problem with setTranslucent still stands and I'm confident it was the reason for the jump we saw.
I know, but this can be achieved both by Our app doesn't want to draw under the StatusBar (we have a So by keeping this We're inevitably causing a jump in our UI by first giving the app the right to draw under the StatusBar and them removing that right when we call I think this is unwanted and is bound to cause problems. |
It is needed.
Not sure if this is correct. Maybe this not how this works. You can cross check this as setBackgroundColor('transparent') is called before calling // StatusBar.setTranslucent(true) in the code. The translucent status bar should cause a jump from the bottom to the top but in the video jump is happening from top to bottom. WhatsApp.Video.2021-06-11.at.2.54.07.PM.mp4But on removing // StatusBar.setTranslucent(true), I Don't see red color inherited via the status bar. Again this needs to be confirmed but I believe this is how it was from the start. There is one more point. I am making all these statements as Translucency is there from the start but this jump issue happened some time back. So I strongly believe that translucency is not the culprit. |
I see your point, @parasharrajat. But: You can see in the QA video that the content is rendered behind the StatusBar, this is only possible in Android if the StatusBar is set to translucent. We can confirm that the
The translucency won't cause a jump in every circumstance, but that doesn't mean it isn't the cause. If the screen we're trying to render is rendered only after the
Ah, yes! I meant to write that we can give it the the same color of the screen by I think the I don't see any colored screens in the app, but I think that if we want to make the StatusBar background color match our screen color, we should do it imperatively by using the |
Ah. Nice point. But Shouldn't it be like when we set |
I am just curious to know this. Anyways if this PR fixes the issue then I will give 👍 . |
The reason this isn't the case is because our inset is calculated in relation to our drawable area. When we So when our insets.top is 0, our app touches the top of the screen (the beginning of our drawable area). If the
No worries, it's always good to have more eyes looking at the code 😄 Thanks! |
🚀 Deployed to staging in version: 1.0.69-3🚀
|
Paid in Upwork! |
🚀 Deployed to production in version: 1.0.73-3🚀
|
Details
Making the StatusBar translucent after the BootSplash was causing abrupt changes to our drawable area, causing the jump that we saw on the issue. It's also no longer necessary since our StatusBar is solid both before and after our JS code loads.
Fixed Issues
#3546
Tests
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Simulator.Screen.Recording.-.iPhone.12.-.2021-06-16.at.10.22.13.mp4
Android
fixHeader.mp4