-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Inconsistent Header on Android #12579
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
Comments
Hey @Noitham! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro, or the provided repro is not valid (e.g. broken link, private repo, code doesn't run etc.). The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue. You can provide a repro using any of the following:
A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected. Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information. You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a valid repro. |
Seeing a similar issue on v6 with React Native 76, do you have any StatusBar instances in app? Their are mainly two thinks I have observed: 1. moving between screens having different statusBarTranslucent causes header bar to sync in Status bar or add extra padding from top, 2. I had some screens using StatusBar and setting its translucent value to true/false it was also leading to the same issue. I was able to fix 2nd point by removing all instances of StatusBar and adding one single one on app root with translucent set to true. For first point as a work around we can try setting statusBarTranslucent to true as hardcoded value and add padding manually maybe. I haven't tried this as it will lead to a major refactor for me. |
A useful reference - software-mansion/react-native-screens#566 (comment) |
I had the same problem, but when I replaced it with SystemBars the header issue disappeared. See https://github.com/zoontek/react-native-edge-to-edge?tab=readme-ov-file#systembars |
@bjarheim, right, removing the usage of I'm actually explicitly setting 🤔 |
Same here, I am on a bare React Native project and haven't enabled edge to edge yet. This issues keeps popping up really randomly on the app. It would have made more sense if it happened consistently on Android 15, but unfortunately that's not the case. |
@sarthak-cars24, since adding the |
Hey @Noitham, I am not using expo. Its a bare React Native app without even react-native-edge-to-edge this package installed. Still getting same issue. |
Uh oh!
There was an error while loading. Please reload this page.
Current behavior
More details:
Expected behavior
Reproduction
WIP - Will provide
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: