-
Notifications
You must be signed in to change notification settings - Fork 1
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: fixes header calculation height #596
Conversation
What are you using (os and device)? I'll reproduce and look into it |
Samsung galaxy s20 / Android 10 |
Might be that is the best alternative here? Put the |
This issue is odd as it seems to be different on solutions with notch and non-notch, but hard to verify as Emulators aren't treating notches properly (react-native-device-info/react-native-device-info#831). Also @rikkekantega doesn't have a notch on her phone, but still see the issue. But not able to reproduce on emulators. |
@rikkekantega This is apparently more complicated than I would've thought. There are issues with the emulators (running three of them). Could you check now? |
Ahh. Hah. 😅 Didn't see the comment. Thanks! But I think maybe the latest changes (2 min ago) aren't included there? Could you please check again? |
@rikkekantega Yeah, I was about to comment on the color change. I decided to propose the color change across all android devices as I did quick polling with some Android users on what they preferred. I was lazy and the changes shouldn't actually be a part of this PR at all. I can open a new PR if we want to take that discussion separately. |
The color change seems fine to me, why not just ship it and see how it works? |
Thanks for the screenshot. This is odd. I believe it has something to do with the status bar sizing but it's not consistent across different devices so I'm having a hard time finding a stable solution for this. I think maybe we/you should debug in your device instead of using emulators. (There are some issues with Emulators and notch detection for instance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWESOME
Seem to be a regression when updating some dependencies I think, where the calculation of the header height in full screen mode is off. This "fixes" that.
The calculations are based on hard-coded values as specified in the react-navigation tab bar code. Not ideal and brittle for cases such as this, but the alternative is layout listener propagating through from the tab bar, which is not ideal either. Might be some other solutions as well. But for now just compensate for the changes and fix the annoying gap
(also included a minor performance improvements that I don't want to do as a separate PR)